diff options
author | Yuri Gorshenin <ygorshenin@chromium.org> | 2015-03-13 17:55:10 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:41:24 +0300 |
commit | 2b0f4125289657beaa71b80f5897052d36521104 (patch) | |
tree | 31a656501d5afcc9d296c878ebed88aa9b71ce1f /base/thread_pool.hpp | |
parent | f7203eb9b75a01270d63e74e8eccebdf531c5742 (diff) |
[thread] Refactored lifetime management of multithreaded tasks.
Diffstat (limited to 'base/thread_pool.hpp')
-rw-r--r-- | base/thread_pool.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/thread_pool.hpp b/base/thread_pool.hpp index 2de3f5dc67..58ac247ff6 100644 --- a/base/thread_pool.hpp +++ b/base/thread_pool.hpp @@ -8,12 +8,12 @@ namespace threads { class IRoutine; - typedef function<void (threads::IRoutine *)> finish_routine_fn; + typedef function<void(threads::IRoutine *)> TFinishRoutineFn; class ThreadPool { public: - ThreadPool(size_t size, const finish_routine_fn & finishFn); + ThreadPool(size_t size, const TFinishRoutineFn & finishFn); ~ThreadPool(); // ThreadPool will not delete routine. You can delete it in finish_routine_fn if need |