Re: inter-thread communication
Re: inter-thread communication
- Subject: Re: inter-thread communication
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sat, 13 Mar 2010 16:25:05 +0100
Le 13 mars 2010 à 00:15, Joel Reymont a écrit :
>
> On Mar 11, 2010, at 9:32 AM, Jean-Daniel Dupas wrote:
>
>> For 10.6, uses Blocks, (CFRunLoopPerformBlock),
>
> How do you make this synchronous, i.e. have CFRunLoopPerformBlock wait for results?
It's not designed to be synchronous, but you can create a semaphore or a condition, wait on this semaphore just after calling CFRunLoopPerformBlock, and signal the semaphore at the end of the block.
-- Jean-Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden