|integral (implementation specific) thread id |
|the pool this thread belongs to |
|the actual thread |
|thread function for the next assignment |
|parameter for the next assignment |
|called on cp_pooled_thread_stop |
|if not set, stop_fn invoked w/ action_prm |
|lock for framework scheduling |
|condition variable for framework scheduling |
|done flag |
|wait flag |
When a client requests threads from the pool, the next available thread is signalled out of 'wait', and runs the thread function requested by the client (see cp_thread_pool_get_impl). When the client thread function is done, the cp_pooled_thread returns to the thread pool and becomes available to pool clients. The cp_pooled_thread only exits when the pool exits, unless explicitly stopped (eg pthread_exit) by client code.
Definition at line 47 of file thread.h.