10 #include <dispatch_private.h>
16 dispatch_block_t wb
= ^(dispatch_item_t di
) { printf("\t\t%p\tstart\n", pthread_self()); sleep(3); };
17 dispatch_block_t cb
= ^(dispatch_item_t di
) { printf("\t\t%p\tdone\n", pthread_self()); };
22 dq
= dispatch_queue_new("conc", DISPATCH_QUEUE_CONCURRENT
, NULL
, NULL
, NULL
);
25 for (i
= 0; i
< 10; i
++) {
26 r
= dispatch_call(dq
, wb
, cb
, NULL
, NULL
);