Thread pool
Data Fields
thread_pool Struct Reference

Thread-pool. More...

#include <threadpool.h>

Collaboration diagram for thread_pool:
Collaboration graph
[legend]

Data Fields

size_t pool_size
 number of threads;
 
sem_t mutex
 thread-pool mutex;
 
sem_t waiting_threads
 semaphore for free threads;
 
queue_tqueue
 pointer to the queue of tasks;
 
pthread_t * threads
 array of threads;
 
bool finished
 information about finishing all tasks;
 
pthread_attr_t attr
 standard pthread attribute;
 

Detailed Description

Thread-pool.


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