Re: Thread Safe APIs?
Re: Thread Safe APIs?
- Subject: Re: Thread Safe APIs?
- From: Raphael Sebbe <email@hidden>
- Date: Wed, 27 Jun 2001 08:39:59 +0200
Generally, you should not consider anything as thread safe (except
perhaps the immutable - read-only - classes). And that's why Cocoa
provides synchronization mecanisms (NSLock, NSConditionLock). And
remember that GUI stuff must be done from the main thread, so you must
use inter-thread communication means. Also, your threads should be
NSThreads, or, if not, you should have created at least one of those so
that the ObjC runtime is correctly set up.
Threading comes back quite often on this mailing list and Omni's. For
more information, just have a look at the archives.
Raphael
On Wednesday, June 27, 2001, at 12:43 AM, Steve Gehrman wrote:
Is there a list of thread safe Cocoa APIs? I'm trying to write a
multithreaded app and am getting mysterious random crashes. I wish
there was an easier way to figure out what I'm calling that I shouldn't
be calling.
steve
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev