• 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: Limiting GCD concurrent queues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Limiting GCD concurrent queues


  • Subject: Re: Limiting GCD concurrent queues
  • From: Graham Cox <email@hidden>
  • Date: Sat, 09 May 2015 09:54:45 +1000

> On 9 May 2015, at 6:19 am, Ken Thomases <email@hidden> wrote:
>
> You should use an NSOperationQueue.  You can set its maxConcurrentOperationCount.  You can add blocks to it using -addOperationWithBlock: or by instantiating NSBlockOperation objects and adding those with -addOperation:.


Though watch out for the new “quality of service” API - the documentation is incorrect and the default value for this can cause problems for your main thread. Easy workaround - just set the QoS setting deliberately to the “background” setting, don’t leave it at the default value. (bug reported).

—Graham



_______________________________________________

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: 
 >Limiting GCD concurrent queues (From: Carl Hoefs <email@hidden>)
 >Re: Limiting GCD concurrent queues (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Limiting GCD concurrent queues
  • Next by Date: Re: Rotate a standard Cocoa control?
  • Previous by thread: Re: Limiting GCD concurrent queues
  • Next by thread: NSUndoManager.prepareWithInvocationTarget:
  • Index(es):
    • Date
    • Thread