Rename worker_block_t into worker_sync_t

as it is a synchronization point for workers
not an anonymous block.
This commit is contained in:
Patrick Pelissier committed 2017-12-28 00:03:47 +01:00
1 parent adc7545a42
commit f2344c69ca
3 files changed
+16 -12

No files matched your search

+5 -1
View File
@@ -3296,7 +3296,7 @@ Example:
worker_t worker;
worker_init(worker, 0, 0, NULL);
worker_block_t sync;
worker_sync_t sync;
void *data = ...;
worker_spawn (worker, sync, taskFunc, data);
taskFunc(otherData);
@@ -3310,6 +3310,10 @@ The following methods are available:
A pool of worker.
#### worker\_sync\_t
A synchronization point between workers.
#### void worker\_init(worker\_t worker, unsigned int numWorker, unsigned int extraQueue, void (*resetFunc)(void))
Initialize the pool of workers 'worker' with 'numWorker' workers.