diff options
author | Simon Rettberg | 2015-01-06 22:36:11 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-01-06 22:36:11 +0100 |
commit | 63e040ea63755052ceca98aac3e6f9843cadbeee (patch) | |
tree | 90f5f0d3dfff42873ac05401f7f280dd13def4ee /src/server/threadpool.h | |
parent | [SERVER] Use a thread pool for client connections (diff) | |
download | dnbd3-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.h | 6 |
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 |