#include <pthread_pool.h>
Data Fields | |
pthread_mutex_t | lock |
structure lock | |
pthread_cond_t | queue_not_empty |
queue not empty condition | |
pthread_cond_t | queue_not_full |
queue not full condition | |
pthread_cond_t | work_finished |
work finished condition | |
pthread_t * | threads |
pointer to an array of threads | |
int | num_threads |
number of threads in pool | |
pool_data_t * | queue |
pointer to an array of work | |
int | front |
index of front of work data | |
int | back |
index of back of work data | |
short | queue_open |
queue open flag | |
int | max_queue_length |
maximum queue length | |
int | queue_length |
current queue length | |
int | num_active |
number of threads currently active | |
int | destroyed |
number of threads who are destroyed | |
int | queue_full_wait |
number of threads waiting for entry in queue | |
int | work_not_finished_wait |
number of threads waiting for current work to be finished | |
int | block |
blocking value |