• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to tell if there's an active runloop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to tell if there's an active runloop? (From: Jens Alfke <email@hidden>)
 >Re: How to tell if there's an active runloop? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: How to tell if there's an active runloop?
  • Next by Date: How to prevent a temp folder from being deleted
  • Previous by thread: Re: How to tell if there's an active runloop?
  • Next by thread: Re: How to tell if there's an active runloop?
  • Index(es):
    • Date
    • Thread