_cp_thread_pool Struct Reference

#include <thread.h>

Data Fields

int size
 current size
int min_size
 initial size
int max_size
 size limit
int running
cp_mutex * pool_lock
 to sync thread assignment and release
cp_cond * pool_cond
 to sync thread assignment and release
 holder for unused threads
 holder for running threads

Detailed Description

cp_thread_pool holds a list of free threads (in wait mode). The list grows up to max_size, after which subsequent calls to cp_thread_pool_get will block, and calls to cp_thread_pool_get_nb will return NULL - until clients return their threads to the pool.

Definition at line 109 of file thread.h.

The documentation for this struct was generated from the following file:
Generated on Mon Dec 5 23:00:23 2011 for cprops by  doxygen 1.4.7