diff options
Diffstat (limited to 'src/server/threadpool.h')
-rw-r--r-- | src/server/threadpool.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/threadpool.h b/src/server/threadpool.h index ee0b3aa..c30d44f 100644 --- a/src/server/threadpool.h +++ b/src/server/threadpool.h @@ -1,7 +1,7 @@ #ifndef _THREADPOOL_H_ #define _THREADPOOL_H_ -#include "../types.h" +#include <dnbd3/types.h> /** * Initialize the thread pool. This must be called before using @@ -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 |