|
libtpool 1.0.0
Thread Pool in C
|
Thread pool instance. More...
#include <pool.h>
Data Fields | |
| u_int8_t | size |
| pthread_t * | threads |
| queue_t | queue |
| pthread_mutex_t * | tpool_lock |
| sem_t | empty |
Thread pool instance.
| sem_t tpool_t::empty |
Semaphore for tracking if queue for tasks is empty
| queue_t tpool_t::queue |
Queue for the tasks
| u_int8_t tpool_t::size |
Number of threads in the thread pool
| pthread_t* tpool_t::threads |
Array of threads
| pthread_mutex_t* tpool_t::tpool_lock |
Mutex for choosing a task