Fix doc
This commit is contained in:
1 parent
f2344c69ca
commit
998f97a95d
1 file changed
+1
@@ -3297,6 +3297,7 @@ Example:
|
|||||||
worker_t worker;
|
worker_t worker;
|
||||||
worker_init(worker, 0, 0, NULL);
|
worker_init(worker, 0, 0, NULL);
|
||||||
worker_sync_t sync;
|
worker_sync_t sync;
|
||||||
|
worker_start(sync);
|
||||||
void *data = ...;
|
void *data = ...;
|
||||||
worker_spawn (worker, sync, taskFunc, data);
|
worker_spawn (worker, sync, taskFunc, data);
|
||||||
taskFunc(otherData);
|
taskFunc(otherData);
|
||||||
|
|||||||
Reference in new issue
Block a user