cf_threadpool_add_task¶
Category: multithreading
GitHub: cute_multithreading.h
Adds a CF_TaskFn to the threadpool.
Parameters | Description |
---|---|
pool | The pool. |
task | The task for a thread in the pool to perform. |
param | Can be NULL . This gets handed to the CF_TaskFn when it gets called. |
Remarks¶
Once a task is added to the pool cf_threadpool_kick_and_wait or cf_threadpool_kick must be called wake threads. Once awake, threads will process the tasks. The order of start/finish for the tasks is not deterministic.
Related Pages¶
CF_TaskFn
cf_make_threadpool
cf_destroy_threadpool
cf_threadpool_kick
cf_threadpool_kick_and_wait