summaryrefslogtreecommitdiffstats
path: root/src/server/threadpool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/threadpool.h')
-rw-r--r--src/server/threadpool.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server/threadpool.h b/src/server/threadpool.h
index 15dd151..d8a526e 100644
--- a/src/server/threadpool.h
+++ b/src/server/threadpool.h
@@ -18,12 +18,18 @@ 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
+ * @param name STRING CONSTANT (literal) for debugging purposes
* @return true if thread was started
*/
-bool threadpool_run(void *(*startRoutine)(void *), void *arg);
+bool threadpool_run(void *(*startRoutine)(void *), void *arg, const char *name);
#endif