|
Crinit -- Configurable Rootfs Init
|
#include <thrpool.h>
Data Fields | |
| size_t | poolSize |
| Current size of the pool. | |
| size_t | poolSizeIncrement |
| How many new threads to create if the pool runs dry. | |
| size_t | threadAvail |
| Number of available worker threads. | |
| pthread_mutex_t | lock |
| Mutex protecting changes to the thread pool structure. | |
| pthread_cond_t | threadAvailChanged |
| Condition variable signalled if crinitThreadPool_t::threadAvail is changed. | |
| pthread_t | dryPoolWdRef |
| Reference to the dry pool watchdog thread, see dryPoolWatchdog() in thrpool.c. | |
| void *(* | threadFunc )(void *args) |
| Thread function for all worker threads. | |
| void * | thrArgs |
| Arguments to the thread function. | |
| size_t | thrArgsSize |
| Number of arguments in crinitThreadPool_t::thrArgs. | |
Structure holding a worker thread pool.
| pthread_t crinitThreadPool_t::dryPoolWdRef |
Reference to the dry pool watchdog thread, see dryPoolWatchdog() in thrpool.c.
| pthread_mutex_t crinitThreadPool_t::lock |
Mutex protecting changes to the thread pool structure.
| size_t crinitThreadPool_t::poolSize |
Current size of the pool.
| size_t crinitThreadPool_t::poolSizeIncrement |
How many new threads to create if the pool runs dry.
| void* crinitThreadPool_t::thrArgs |
Arguments to the thread function.
| size_t crinitThreadPool_t::thrArgsSize |
Number of arguments in crinitThreadPool_t::thrArgs.
| size_t crinitThreadPool_t::threadAvail |
Number of available worker threads.
| pthread_cond_t crinitThreadPool_t::threadAvailChanged |
Condition variable signalled if crinitThreadPool_t::threadAvail is changed.
| void *(* crinitThreadPool_t::threadFunc) (void *args) |
Thread function for all worker threads.