tpool Struct Reference

#include <eh_thread_pool.h>

List of all members.

Public Attributes

int num_threads
int max_queue_size
int do_not_block_when_full
pthread_t * threads
int cur_queue_size
tpool_work_tqueue_head
tpool_work_tqueue_tail
pthread_mutex_t queue_lock
pthread_cond_t queue_not_empty
pthread_cond_t queue_not_full
pthread_cond_t queue_empty
int queue_closed
int shutdown


Detailed Description

Definition at line 13 of file eh_thread_pool.h.


Member Data Documentation

int tpool::num_threads

Definition at line 15 of file eh_thread_pool.h.

Referenced by tpool_destroy().

int tpool::max_queue_size

Definition at line 16 of file eh_thread_pool.h.

Referenced by tpool_add_work().

int tpool::do_not_block_when_full

Definition at line 18 of file eh_thread_pool.h.

Referenced by tpool_add_work().

pthread_t* tpool::threads

Definition at line 20 of file eh_thread_pool.h.

Referenced by tpool_destroy().

int tpool::cur_queue_size

Definition at line 21 of file eh_thread_pool.h.

Referenced by tpool_add_work(), tpool_destroy(), and tpool_thread().

tpool_work_t* tpool::queue_head

Definition at line 22 of file eh_thread_pool.h.

Referenced by tpool_add_work(), and tpool_destroy().

tpool_work_t* tpool::queue_tail

Definition at line 23 of file eh_thread_pool.h.

Referenced by tpool_add_work().

pthread_mutex_t tpool::queue_lock

Definition at line 24 of file eh_thread_pool.h.

Referenced by tpool_add_work(), tpool_destroy(), and tpool_thread().

pthread_cond_t tpool::queue_not_empty

Definition at line 25 of file eh_thread_pool.h.

Referenced by tpool_add_work(), tpool_destroy(), and tpool_thread().

pthread_cond_t tpool::queue_not_full

Definition at line 26 of file eh_thread_pool.h.

Referenced by tpool_add_work(), and tpool_destroy().

pthread_cond_t tpool::queue_empty

Definition at line 27 of file eh_thread_pool.h.

Referenced by tpool_destroy().

int tpool::queue_closed

Definition at line 28 of file eh_thread_pool.h.

Referenced by tpool_add_work(), and tpool_destroy().

int tpool::shutdown

Definition at line 29 of file eh_thread_pool.h.

Referenced by tpool_add_work(), tpool_destroy(), and tpool_thread().


The documentation for this struct was generated from the following file:
Generated on Fri Jan 4 18:04:19 2008 for sedflux by  doxygen 1.5.2