ThreadPool#ThreadPool(): remove unused parameter

This commit is contained in:
Alexander A. Klimov 2023-01-27 16:32:29 +01:00
parent 6414ce3742
commit 288ad68649
2 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@
using namespace icinga;
ThreadPool::ThreadPool(size_t threads)
: m_Threads(threads), m_Pending(0)
ThreadPool::ThreadPool()
: m_Threads(Configuration::Concurrency * 2u), m_Pending(0)
{
Start();
}

View File

@ -37,7 +37,7 @@ class ThreadPool
public:
typedef std::function<void ()> WorkFunction;
ThreadPool(size_t threads = Configuration::Concurrency * 2u);
ThreadPool();
~ThreadPool();
void Start();