Re: Anything I should know about thread safety and fprintf?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=Hr8mF20Zo4G7/bGVkdqUxu8jWKnesk2sl98VfXRGzhM=; b=j0QDaZyipqZW5WOCcT3csJxc1TGm3IX4LUw4UW1ezd0c3/kMJPpdPCRm5sAOMve3z/IaevWV5xtUNjk07RxRCt8X1Yl3iBU2vvCnXJQ55MWqkDvYcL3ToHVkife3t65iFp++qADCOnJ3utO/1Veql4m4qtShgmleIFJk18SSdu4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=htLhCvuJsV7K/5DS5BrO9VTNwX9CAqb9BoAvY+Wn5f01sIFLCvsZdYNFhrFc5UWhONwzwa8eBHXxgU7wYc0Qdy+0YIZBh6ij46SOQSlXmC1NDb2dOFzGmvOmgspXVmtlfsoNYOBQwEujC3prVPvjIXWY6ccMxK93q0RAhl6ffqw= On Jan 24, 2008 1:12 PM, Terry Lambert <tlambert@apple.com> wrote:
Please see my other posting. You are not fixing your underlying problem here.
My personal suggested fix would be to marshal the data to a single thread for disposition. Then your limit will be however much data you can jam down the drain pipe plus however much data you are willing to internally queue in your application in the marshalling process.
I'm only logging a few lines - maybe 500 characters in total - so I can't see how I'd be overloading the queue. Even if I did, presumably the write() call ought to return eventually? I haven't yet been able to reproduce this outside of Xcode - it's tempting to blame it on an oddity in Xcode's run log and forget about it... _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jonathan del Strother