Re: Thread safety of NSPipe
Re: Thread safety of NSPipe
- Subject: Re: Thread safety of NSPipe
- From: Chris Kane <email@hidden>
- Date: Wed, 10 Mar 2004 08:21:07 -0800
On Feb 18, 2004, at 6:12 AM, Glen Low wrote:
According to
http://developer.apple.com/documentation/Cocoa/Conceptual/
Multithreading/Tasks/foundation.html
the classes NSPipe and NSFileHandle are not "thread-safe". However, the
definition of thread-safe is perhaps a little loose and more
object-oriented than the typical: it says "able to have operations
invoked simultaneously by multiple threads of execution on an
instance...". Does this mean that operations can be invoked on separate
instances of any class in different threads?
You can't conclude anything from that statement for another reason,
which is that "the class is not thread-safe" is the default statement
when the class also has not been carefully vetted for thread-safety.
In those cases "not thread-safe" is a synonym for "nobody knows".
Maybe, maybe not. Maybe now (by chance), maybe not in the future.
Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
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.