diff --git a/lib/base/threadpool.cpp b/lib/base/threadpool.cpp index 747d60820..21f19fd42 100644 --- a/lib/base/threadpool.cpp +++ b/lib/base/threadpool.cpp @@ -5,8 +5,7 @@ using namespace icinga; -ThreadPool::ThreadPool() - : m_Threads(Configuration::Concurrency * 2u), m_Pending(0) +ThreadPool::ThreadPool() : m_Pending(0) { Start(); } @@ -21,7 +20,7 @@ void ThreadPool::Start() boost::unique_lock lock (m_Mutex); if (!m_Pool) { - m_Pool = decltype(m_Pool)(new boost::asio::thread_pool(m_Threads)); + m_Pool = decltype(m_Pool)(new boost::asio::thread_pool(Configuration::Concurrency * 2u)); } } diff --git a/lib/base/threadpool.hpp b/lib/base/threadpool.hpp index a8a9732f0..f9760bc8b 100644 --- a/lib/base/threadpool.hpp +++ b/lib/base/threadpool.hpp @@ -90,7 +90,6 @@ public: private: boost::shared_mutex m_Mutex; std::unique_ptr m_Pool; - size_t m_Threads; Atomic m_Pending; };