F farmerdoug macrumors 6502a Original poster Sep 16, 2008 541 0 Dec 9, 2011 #26 Definitely looks above my present abilities. Many have a new student who can take it on but my offer to Lloyd extends to you. Thanks
Definitely looks above my present abilities. Many have a new student who can take it on but my offer to Lloyd extends to you. Thanks
jared_kipe macrumors 68030 Dec 8, 2003 2,967 1 Seattle Dec 9, 2011 #27 For implementing a for loop style there is a more specific function: Code: dispatch_apply(size_t iterations, dispatch_queue_t queue, void (^block)(size_t)); This does 'iterations' dispatches and passes 0-(iterations - 1) as a variable to the block or function to keep track of which iteration it is on. GCD will automatically optimize thread creation based on system resources.
For implementing a for loop style there is a more specific function: Code: dispatch_apply(size_t iterations, dispatch_queue_t queue, void (^block)(size_t)); This does 'iterations' dispatches and passes 0-(iterations - 1) as a variable to the block or function to keep track of which iteration it is on. GCD will automatically optimize thread creation based on system resources.