mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
ThreadPool#ThreadPool(): remove unused parameter
This commit is contained in:
parent
6414ce3742
commit
288ad68649
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
ThreadPool::ThreadPool(size_t threads)
|
ThreadPool::ThreadPool()
|
||||||
: m_Threads(threads), m_Pending(0)
|
: m_Threads(Configuration::Concurrency * 2u), m_Pending(0)
|
||||||
{
|
{
|
||||||
Start();
|
Start();
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ class ThreadPool
|
|||||||
public:
|
public:
|
||||||
typedef std::function<void ()> WorkFunction;
|
typedef std::function<void ()> WorkFunction;
|
||||||
|
|
||||||
ThreadPool(size_t threads = Configuration::Concurrency * 2u);
|
ThreadPool();
|
||||||
~ThreadPool();
|
~ThreadPool();
|
||||||
|
|
||||||
void Start();
|
void Start();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user