libtpool 1.0.0
Thread Pool in C
All Data Structures Files Functions Variables Typedefs Macros Pages
Data Fields
tpool_t Struct Reference

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
 

Detailed Description

Thread pool instance.

Field Documentation

◆ empty

sem_t tpool_t::empty

Semaphore for tracking if queue for tasks is empty

◆ queue

queue_t tpool_t::queue

Queue for the tasks

◆ size

u_int8_t tpool_t::size

Number of threads in the thread pool

◆ threads

pthread_t* tpool_t::threads

Array of threads

◆ tpool_lock

pthread_mutex_t* tpool_t::tpool_lock

Mutex for choosing a task


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