Re: inter-thread communication
Re: inter-thread communication
- Subject: Re: inter-thread communication
- From: Joel Reymont <email@hidden>
- Date: Sat, 13 Mar 2010 21:14:30 +0000
On Mar 13, 2010, at 3:25 PM, Jean-Daniel Dupas wrote:
> 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.
I ended up using a semaphore. The other important thing that's not mentioned anywhere is that you need a CFRunLoopWakeUp after your CFRunLoopPerformBlock to make sure your block runs.
---
http://es.linkedin.com/in/joelreymont
_______________________________________________
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