On Oct 3, 2013, at 1:59 PM, cocoa-dev-requ...@lists.apple.com wrote: > > The main thread of a Cocoa app has a runloop (of course) and also the main > GCD dispatch queue. This is very handy because it means tasks on that thread > can be scheduled either using the runloop (NSTimer or delayed-perform) or > using GCD (dispatch_async, dispatch_sync). > > But background threads don’t seem to have the same property. If I create a > thread using NSThread, it supports a runloop, but I don’t see any API for > getting or creating a dispatch queue that runs in conjunction with the > runloop. Did I miss something? > > —Jens
I am not sure that I understand your question but have you read the "Replacing Run-Loop Code" section in the Concurrency Programming Guide? For instance, it suggests using dispatch_sources, and so on, rather than NSTimer methods. In my own code, I think that I have migrated completely to the use of GCD. -- Rick *------------------------------------------------- * Frederick Bartram * PGP key id: 0x63fa758 keyserver: http://keyserver.pgp.com */
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ 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