• 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: Can I create a thread with a runloop and a dispatch queue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Kyle Sluder <email@hidden>
  • Date: Thu, 03 Oct 2013 12:17:50 -0700

On Thu, Oct 3, 2013, at 12:14 PM, Jens Alfke wrote:
>
> On Oct 3, 2013, at 12:07 PM, Kyle Sluder <email@hidden> wrote:
>
> > They're fundamentally different ways of doing multiprocessing.
>
> So to use GCD I have to rip apart all of my code that uses
> threads/runloops at once and rewrite it? (As I’ve said, I don’t mind
> upgrading it bit by bit as I go; it’s the big-bang approach that scares
> me.)

Carbon, anyone?

>
> > You _could_ have all your async queues target a serial queue that then
> > enqueues a bunch of blocks on a specific thread, but why?
>
> I keep explaining this. So code that uses GCD APIs can coexist with code
> that uses runloops.

The "why" was a question of "Why go through all this effort to fight the
framework, when the old way functions perfectly well?"

What is adopting GCD going to get you if you aren't going to use GCD the
way it was intended?

--Kyle Sluder

_______________________________________________

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


  • Follow-Ups:
    • Re: Can I create a thread with a runloop and a dispatch queue?
      • From: Jens Alfke <email@hidden>
References: 
 >Re: Can I create a thread with a runloop and a dispatch queue? (From: Kyle Sluder <email@hidden>)
 >Re: Can I create a thread with a runloop and a dispatch queue? (From: Ken Thomases <email@hidden>)
 >Re: Can I create a thread with a runloop and a dispatch queue? (From: Jens Alfke <email@hidden>)
 >Re: Can I create a thread with a runloop and a dispatch queue? (From: Kyle Sluder <email@hidden>)
 >Re: Can I create a thread with a runloop and a dispatch queue? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Can I create a thread with a runloop and a dispatch queue?
  • Next by Date: Re: How to get a "Normal" button in iOS 7/IB
  • Previous by thread: Re: Can I create a thread with a runloop and a dispatch queue?
  • Next by thread: Re: Can I create a thread with a runloop and a dispatch queue?
  • Index(es):
    • Date
    • Thread