2012-02-18 13 views

答えて

1

マップ操作のような操作をn回実行する場合は、dispatch_applyを使用できます。

dispatch_apply(10, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, NULL), ^(size_t index) { 
    void * my_thing = my_tings[index]; 
    // ... 
});