|
Thread pool
|
Thread-pool. More...
#include <threadpool.h>

Data Fields | |
| size_t | pool_size |
| number of threads; | |
| sem_t | mutex |
| thread-pool mutex; | |
| sem_t | waiting_threads |
| semaphore for free threads; | |
| queue_t * | queue |
| 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; | |
Thread-pool.
1.8.17