Crinit -- Configurable Rootfs Init
crinitThreadPool_t Struct Reference

#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...
 

Detailed Description

Structure holding a worker thread pool.

Member Data Documentation

◆ dryPoolWdRef

pthread_t crinitThreadPool_t::dryPoolWdRef

Reference to the dry pool watchdog thread, see dryPoolWatchdog() in thrpool.c.

◆ lock

pthread_mutex_t crinitThreadPool_t::lock

Mutex protecting changes to the thread pool structure.

◆ poolSize

size_t crinitThreadPool_t::poolSize

Current size of the pool.

◆ poolSizeIncrement

size_t crinitThreadPool_t::poolSizeIncrement

How many new threads to create if the pool runs dry.

◆ thrArgs

void* crinitThreadPool_t::thrArgs

Arguments to the thread function.

◆ thrArgsSize

size_t crinitThreadPool_t::thrArgsSize

Number of arguments in crinitThreadPool_t::thrArgs.

◆ threadAvail

size_t crinitThreadPool_t::threadAvail

Number of available worker threads.

◆ threadAvailChanged

pthread_cond_t crinitThreadPool_t::threadAvailChanged

Condition variable signalled if crinitThreadPool_t::threadAvail is changed.

◆ threadFunc

void*(* crinitThreadPool_t::threadFunc) (void *args)

Thread function for all worker threads.


The documentation for this struct was generated from the following file: