From 288ad68649febb83ef68468ae55c4a6f63521ca0 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 27 Jan 2023 16:32:29 +0100 Subject: [PATCH] ThreadPool#ThreadPool(): remove unused parameter --- lib/base/threadpool.cpp | 4 ++-- lib/base/threadpool.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/base/threadpool.cpp b/lib/base/threadpool.cpp index 26787ab52..747d60820 100644 --- a/lib/base/threadpool.cpp +++ b/lib/base/threadpool.cpp @@ -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(); } diff --git a/lib/base/threadpool.hpp b/lib/base/threadpool.hpp index f8727034a..a8a9732f0 100644 --- a/lib/base/threadpool.hpp +++ b/lib/base/threadpool.hpp @@ -37,7 +37,7 @@ class ThreadPool public: typedef std::function WorkFunction; - ThreadPool(size_t threads = Configuration::Concurrency * 2u); + ThreadPool(); ~ThreadPool(); void Start();