ui/common/threadpool.h

changeset 949
ef8f13c8c08f
parent 404
384f6d1f5784
child 950
39641cf150eb
--- a/ui/common/threadpool.h	Thu Dec 04 19:04:08 2025 +0100
+++ b/ui/common/threadpool.h	Sat Dec 06 14:12:11 2025 +0100
@@ -62,6 +62,8 @@
     uint32_t        num_idle;
     int             min_threads;
     int             max_threads;
+    pthread_t       *threads;
+    int             nthreads;
 };
 
 struct _threadpool_job {
@@ -76,6 +78,7 @@
 
 UiThreadpool* threadpool_new(int min, int max);
 int threadpool_start(UiThreadpool *pool);
+int threadpool_join(UiThreadpool *pool);
 void* threadpool_func(void *data);
 threadpool_job* threadpool_get_job(UiThreadpool *pool);
 void threadpool_run(UiThreadpool *pool, job_callback_f func, void *data);

mercurial