diff --git a/src/thread_pool.cpp b/src/thread_pool.cpp index 619fa00..14040fd 100644 --- a/src/thread_pool.cpp +++ b/src/thread_pool.cpp @@ -4,7 +4,7 @@ namespace threading { ThreadPool::ThreadPool() { - size_t const thread_count{ std::max(std::thread::hardware_concurrency() / 2, 1u) }; + size_t const thread_count{ std::max(std::thread::hardware_concurrency() - 1, 1u) }; this->threads.reserve(thread_count); for (size_t i{ 0 }; i < thread_count; ++i) { this->threads.emplace_back(std::bind(&ThreadPool::ThreadFn, this));