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