diff -r 74babc0082b7 -r 50505dc3f8a6 src/server/util/thrpool.h --- a/src/server/util/thrpool.h Sun May 26 12:12:07 2013 +0200 +++ b/src/server/util/thrpool.h Sun May 26 22:05:41 2013 +0200 @@ -42,7 +42,11 @@ pthread_mutex_t avlbl_lock; pthread_cond_t available; pool_queue_t *queue; - int queue_len; + uint32_t queue_len; + uint32_t num_idle; + uint32_t num_threads; + int min_threads; + int max_threads; }; struct _threadpool_job { @@ -55,6 +59,8 @@ pool_queue_t *next; }; +void threadpool_enqueue_job(threadpool_t *pool, threadpool_job *job); + #ifdef __cplusplus } #endif