ubject: Re: Providing synch/asynch API
On Tue, Mar 25, 2008 at 12:05 PM, Andy Klepack
<[EMAIL PROTECTED]> wrote:
> I'm curious how people tackle this problem pre-Leopard and
> performSelector:onThread:withObject:waitUntilDone: API
Well you've got a couple of unresolved paramete
In case you choose option 2.
For the sync version, as you want to block the execution thread, you
don't have to run the runloop. You may use a condition lock to wait
the worker thread completion (NSConditionLock or pthread condition).
performSync() {
// create condition
performAsync().
/