Objective-C wait/notify?
Glen Simmons
glen.simmons at gmail.com
Fri Apr 4 19:31:48 PDT 2008
Or, if you'd prefer something a bit higher level and in the Cocoa
world, take a look at NSLock and friends.
On Apr 4, 2008, at 9:02 PM, Michael Vannorsdel wrote:
> Checkout pthread_cond_wait and pthread_cond_signal.
>
>
> On Apr 4, 2008, at 7:59 PM, SD wrote:
>
>> I have an application that is using Cocoa/Objective-C, how do I
>> make a thread wait until something happens on another thread
>> without resorting to polling. I don't want the function to exit
>> until some state in the class changes.
>>
>> ie: in Java I would use the wait/notify mechanisms.
> _______________________________________________
> MacOSX-dev mailing list
> MacOSX-dev at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
More information about the MacOSX-dev
mailing list