mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
d790162ce3
commit
65b41c51ff
@ -34,7 +34,7 @@ using namespace icinga;
|
||||
int ThreadPool::m_NextID = 1;
|
||||
|
||||
ThreadPool::ThreadPool(int max_threads)
|
||||
: m_ID(m_NextID++), m_Stopped(false), m_MaxThreads(max_threads)
|
||||
: m_ID(m_NextID++), m_MaxThreads(max_threads), m_Stopped(false)
|
||||
{
|
||||
if (m_MaxThreads != -1 && m_MaxThreads < sizeof(m_Queues) / sizeof(m_Queues[0]))
|
||||
m_MaxThreads = sizeof(m_Queues) / sizeof(m_Queues[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user