From 1942782b567f40504577bedd291ee461d7b1a202 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Fri, 27 Mar 2020 20:06:55 +0100 Subject: [PATCH] util-threadpool: Fix order of initialization --- source/util-threadpool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/util-threadpool.cpp b/source/util-threadpool.cpp index a1660531..1028e435 100644 --- a/source/util-threadpool.cpp +++ b/source/util-threadpool.cpp @@ -22,7 +22,7 @@ // Most Tasks likely wait for IO, so we can use that time for other tasks. #define CONCURRENCY_MULTIPLIER 2 -util::threadpool::threadpool() : _workers(), _tasks(), _tasks_lock(), _tasks_cv(), _worker_stop(false) +util::threadpool::threadpool() : _workers(), _worker_stop(false), _tasks(), _tasks_lock(), _tasks_cv() { size_t concurrency = static_cast(std::thread::hardware_concurrency()) * CONCURRENCY_MULTIPLIER; for (size_t n = 0; n < concurrency; n++) {