Re: kqueue on OS X
Re: kqueue on OS X
- Subject: Re: kqueue on OS X
- From: Glen Low <email@hidden>
- Date: Wed, 18 Feb 2004 08:39:33 +0800
Scott:
On 18/02/2004, at 8:23 AM, Scott Lamb wrote:
On Feb 17, 2004, at 6:01 PM, Glen Low wrote:
Now pipes and file descriptors seem dangerous to me, since they are
not necessarily threadsafe (especially with Cocoa)
Now, this is definitely not true. Two threads should be able to talk
to each other on opposite ends of the same pipe without problem. And
Cocoa doesn't have to enter the picture - you can use the raw system
calls.
According to:
http://developer.apple.com/documentation/Cocoa/Conceptual/
Multithreading/Tasks/foundation.html
It says facilities which are generally thread-unsafe are:
... NSPipe ...
I am unsure if the underlying BSD pipe implementation is threadsafe, I
can't see this one way or another by googling.
Cheers, Glen Low
---
pixelglow software | simply brilliant stuff
www.pixelglow.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.