Re: Can I create a thread with a runloop and a dispatch queue?
Re: Can I create a thread with a runloop and a dispatch queue?
- Subject: Re: Can I create a thread with a runloop and a dispatch queue?
- From: Mike Abdullah <email@hidden>
- Date: Fri, 04 Oct 2013 00:01:04 +0100
On 3 Oct 2013, at 22:37, Jens Alfke <email@hidden> wrote:
>
> On Oct 3, 2013, at 2:09 PM, Mike Abdullah <email@hidden> wrote:
>
>> You can actually target a custom queue at any other queue you like, to create a whole chain of them. Work submitted to such queues ends up executing within the context of multiple queues at once.
>
> OK, this I did not know, despite (I thought) reading docs. Is this from a WWDC session or release note? Is there an actual book (hopefully from O’Reilly) covering GCD? (Apple’s docs are OK as far as they go, but like all hypertext they have the problem that you’re never entirely sure you’ve read everything.)
I'm not aware of any books. The API in question is dispatch_set_target_queue(). I first understood the concept from Mike Ash's excellent series of articles: http://www.mikeash.com/pyblog/friday-qa-2009-09-18-intro-to-grand-central-dispatch-part-iv-odds-and-ends.html
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden