src/server/util/thrpool.h

changeset 67
50505dc3f8a6
parent 59
ab25c0a231d0
--- 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

mercurial