diff options
author | Keuin <[email protected]> | 2022-04-17 13:52:38 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-04-17 13:52:38 +0800 |
commit | d3df1a2a93d466e2a6f4552c1a9947fba0f38e14 (patch) | |
tree | 06d0d9daace11dd85173dc59d176aa94c4396f81 /threading.h | |
parent | 836eab89d8092b313c292db79be2aa450f8a059a (diff) |
Remove redundant closure.
Diffstat (limited to 'threading.h')
-rw-r--r-- | threading.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/threading.h b/threading.h index 0b11d60..73a1741 100644 --- a/threading.h +++ b/threading.h @@ -54,7 +54,7 @@ template<typename T> void thread_pool<T>::start() { if (workers.empty()) { for (typeof(thread_count) i = 0; i < thread_count; ++i) { - workers.emplace_back(std::thread{[this]() { this->worker_main(); }}); + workers.emplace_back(std::thread{&thread_pool<T>::worker_main, this}); } } else { // TODO |