From d3df1a2a93d466e2a6f4552c1a9947fba0f38e14 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sun, 17 Apr 2022 13:52:38 +0800 Subject: Remove redundant closure. --- threading.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/threading.h b/threading.h index 0b11d60..73a1741 100644 --- a/threading.h +++ b/threading.h @@ -54,7 +54,7 @@ template void thread_pool::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::worker_main, this}); } } else { // TODO -- cgit v1.2.3