Re: How to tell if there's an active runloop?
Re: How to tell if there's an active runloop?
- Subject: Re: How to tell if there's an active runloop?
- From: Jens Alfke <email@hidden>
- Date: Wed, 26 Mar 2014 15:01:19 -0700
On Mar 26, 2014, at 2:48 PM, Kyle Sluder <email@hidden> wrote:
> If you want to delay something for later, you should probably use dispatch_after.
I’d love to, except that background threads don’t correspond to dispatch queues. People who are [still] using NSThreads should be able to use this library.
(That includes the library itself, actually. It runs a background NSThread of its own for some operations. I tried to convert all of this to GCD two years ago but ran into some really frustrating issues due to pieces of Cocoa not agreeing on which concurrency API to use. For example, I use a _lot_ of NSURLConnection, which doesn’t support dispatch queues, only runloops and NSOperationQueues. And I also use CFStream/NSStream, which only supports runloops. I started a lengthy thread here about this last year, if you recall.)
—Jens
_______________________________________________
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