Re: Limiting GCD concurrent queues
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