libsir 2.2.6
Standard Incident Reporter
|
Thread pool/job queue data container. More...
Data Fields | |
sir_thread * | threads |
A list of thread handles. | |
size_t | num_threads |
The number of threads in the pool. | |
sir_queue * | jobs |
A queue of jobs to run (FIFO). | |
sir_condition | cond |
A condition which indicates that a job is ready. | |
sir_mutex | mutex |
A mutex to be paired with the condition variable. | |
bool | cancel |
Causes threads in the pool to exit when true. | |
Thread pool/job queue data container.
bool sir_threadpool::cancel |
Causes threads in the pool to exit when true.
sir_condition sir_threadpool::cond |
A condition which indicates that a job is ready.
sir_queue* sir_threadpool::jobs |
A queue of jobs to run (FIFO).
sir_mutex sir_threadpool::mutex |
A mutex to be paired with the condition variable.
size_t sir_threadpool::num_threads |
The number of threads in the pool.
sir_thread* sir_threadpool::threads |
A list of thread handles.