diff options
Diffstat (limited to 'src/server/threadpool.h')
-rw-r--r-- | src/server/threadpool.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/threadpool.h b/src/server/threadpool.h index 15dd151..ee0b3aa 100644 --- a/src/server/threadpool.h +++ b/src/server/threadpool.h @@ -18,6 +18,11 @@ bool threadpool_init(int maxIdleThreadCount); void threadpool_close(); /** + * Block until all threads spawned have exited + */ +void threadpool_waitEmpty(); + +/** * Run a thread using the thread pool. * @param startRoutine function to run in new thread * @param arg argument to pass to thead |