• 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: Does GCD auto-limit concurrent tasks to number of cores?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Does GCD auto-limit concurrent tasks to number of cores? (From: Carl Hoefs <email@hidden>)
 >Re: Does GCD auto-limit concurrent tasks to number of cores? (From: Clark Smith Cox III <email@hidden>)
 >Re: Does GCD auto-limit concurrent tasks to number of cores? (From: Ken Thomases <email@hidden>)
 >Re: Does GCD auto-limit concurrent tasks to number of cores? (From: Carl Hoefs <email@hidden>)

  • Prev by Date: Re: Does GCD auto-limit concurrent tasks to number of cores?
  • Next by Date: Re: Does GCD auto-limit concurrent tasks to number of cores?
  • Previous by thread: Re: Does GCD auto-limit concurrent tasks to number of cores?
  • Next by thread: Re: Does GCD auto-limit concurrent tasks to number of cores?
  • Index(es):
    • Date
    • Thread