src/server/util/thrpool.h

changeset 569
70bca6190669
parent 556
b036ccad4b49
child 570
f95868a8ec37
--- a/src/server/util/thrpool.h	Fri Jan 24 17:42:58 2025 +0100
+++ b/src/server/util/thrpool.h	Sun Jan 26 23:09:43 2025 +0100
@@ -31,6 +31,7 @@
 
 #include "../public/nsapi.h"
 #include <pthread.h>
+#include <time.h>
 
 #ifdef	__cplusplus
 extern "C" {
@@ -47,6 +48,10 @@
     uint32_t        num_threads;
     int             min_threads;
     int             max_threads;
+    pthread_t       *threads;
+    int             *thrstatus;
+    time_t          last_job;
+    int             last_thread;
 };
 
 struct _threadpool_job {

mercurial