CF_TaskFn¶
Category: multithreading
GitHub: cute_multithreading.h
A function pointer for a task in CF_Threadpool.
Parameters | Description |
---|---|
param | Can be NULL . This is passed to the task, and comes from cf_threadpool_add_task. |
Remarks¶
Threadpools are an advanced topic. You've been warned! John has a good article on threadpools. A task is a single function that a thread in the threadpool will run. Usually they perform one chunk of work, and then return. Often a task is defined as a bunch of processing that doesn't share any data external to the task.
Related Pages¶
cf_threadpool_kick
cf_make_threadpool
cf_destroy_threadpool
cf_threadpool_add_task
cf_threadpool_kick_and_wait