> On Oct 8, 2014, at 12:06 PM, davekeck . <davek...@gmail.com> wrote: > > You could use some other signaling mechanism -- a dispatch_semaphore_t > or NSConditionLock, for example.
Yeah, but that doesn't work for the async mode, where I need a dispatch_async call to queue A to notify it. Maybe I'd also need a shared flag that indicates async vs. sync mode, and queue B would look at the flag and either dispatch a block or toggle the condition based on its state. —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com