|
solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
|
A unit of work submitted to the pool. More...
#include <threadpool.h>
Public Attributes | |
| void(* | function )(void *arg) |
| void * | arg |
A unit of work submitted to the pool.
Tasks are value types — they are copied into the pool's internal queues on submission. The caller does not need to keep the Task object alive after threadpool_submit or threadpool_submit_batch returns.
Definition at line 108 of file threadpool.h.
| void* Task::arg |
Opaque argument forwarded to function unchanged.
Definition at line 110 of file threadpool.h.
| void(* Task::function) (void *arg) |
Function to execute. Must not be NULL.
Definition at line 109 of file threadpool.h.