summaryrefslogtreecommitdiffstats
path: root/src/server/threadpool.h
diff options
context:
space:
mode:
authorSimon Rettberg2015-01-06 22:36:11 +0100
committerSimon Rettberg2015-01-06 22:36:11 +0100
commit63e040ea63755052ceca98aac3e6f9843cadbeee (patch)
tree90f5f0d3dfff42873ac05401f7f280dd13def4ee /src/server/threadpool.h
parent[SERVER] Use a thread pool for client connections (diff)
downloaddnbd3-63e040ea63755052ceca98aac3e6f9843cadbeee.tar.gz
dnbd3-63e040ea63755052ceca98aac3e6f9843cadbeee.tar.xz
dnbd3-63e040ea63755052ceca98aac3e6f9843cadbeee.zip
[SERVER] Big code cleanup, refactoring, minor bugfixing
Diffstat (limited to 'src/server/threadpool.h')
-rw-r--r--src/server/threadpool.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/threadpool.h b/src/server/threadpool.h
index b3b0fe6..15dd151 100644
--- a/src/server/threadpool.h
+++ b/src/server/threadpool.h
@@ -12,6 +12,12 @@
bool threadpool_init(int maxIdleThreadCount);
/**
+ * Shut down threadpool.
+ * Only call if it has been initialized before.
+ */
+void threadpool_close();
+
+/**
* Run a thread using the thread pool.
* @param startRoutine function to run in new thread
* @param arg argument to pass to thead