| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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.
| References: | |
| >Re: kqueue on OS X (From: Glen Low <email@hidden>) | |
| >Re: kqueue on OS X (From: Scott Lamb <email@hidden>) | |
| >Re: kqueue on OS X (From: Glen Low <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.