Re: Does GCD auto-limit concurrent tasks to number of cores?
Re: Does GCD auto-limit concurrent tasks to number of cores?
- Subject: Re: Does GCD auto-limit concurrent tasks to number of cores?
- From: Carl Hoefs <email@hidden>
- Date: Thu, 09 Apr 2015 13:09:54 -0700
- Importance: Normal
> On another note, I don't know why this is having trouble:
>
> dispatch_apply(4950,
> dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH,
> 0),
> ^(size_t idx) { <--- error
> });
> Incompatible block pointer types passing 'int (^)(size_t)' to parameter of
> type 'void (^)(size_t)'
My bad. I had an inadvertent 'return 0' in the block. Gotta learn to
translate Xcodese!
-Carl
_______________________________________________
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