• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Thread safety of NSPipe
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Wisdom of overriding isEqual:
  • Next by Date: NSMenuItem <protocol>
  • Previous by thread: Re: Writing an image from a text view to file
  • Next by thread: Re: Thread safety of NSPipe
  • Index(es):
    • Date
    • Thread