summaryrefslogtreecommitdiffstats
path: root/src/server/threadpool.h
diff options
context:
space:
mode:
authorSimon Rettberg2020-03-19 11:26:12 +0100
committerSimon Rettberg2020-03-19 11:26:12 +0100
commitba617b55eb606ab487f154b124750e121518d5e5 (patch)
tree0615ed15ac989f1f21c791d3c111e264932f22ed /src/server/threadpool.h
parentcmake: Fix version.c building on fresh checkouts (diff)
downloaddnbd3-ba617b55eb606ab487f154b124750e121518d5e5.tar.gz
dnbd3-ba617b55eb606ab487f154b124750e121518d5e5.tar.xz
dnbd3-ba617b55eb606ab487f154b124750e121518d5e5.zip
[SERVER] Add name param to threadpool_run
Diffstat (limited to 'src/server/threadpool.h')
-rw-r--r--src/server/threadpool.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/threadpool.h b/src/server/threadpool.h
index ee0b3aa..d8a526e 100644
--- a/src/server/threadpool.h
+++ b/src/server/threadpool.h
@@ -26,9 +26,10 @@ 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