mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
parent
162cee5c40
commit
79e960f7cb
@ -323,7 +323,7 @@ void ThreadPool::Queue::SpawnWorker(boost::thread_group& group)
|
|||||||
{
|
{
|
||||||
for (size_t i = 0; i < sizeof(Threads) / sizeof(Threads[0]); i++) {
|
for (size_t i = 0; i < sizeof(Threads) / sizeof(Threads[0]); i++) {
|
||||||
if (Threads[i].State == ThreadDead) {
|
if (Threads[i].State == ThreadDead) {
|
||||||
Log(LogDebug, "debug", "Spawning worker thread.");
|
Log(LogDebug, "base", "Spawning worker thread.");
|
||||||
|
|
||||||
Threads[i] = WorkerThread(ThreadIdle);
|
Threads[i] = WorkerThread(ThreadIdle);
|
||||||
Threads[i].Thread = group.create_thread(boost::bind(&ThreadPool::WorkerThread::ThreadProc, boost::ref(Threads[i]), boost::ref(*this)));
|
Threads[i].Thread = group.create_thread(boost::bind(&ThreadPool::WorkerThread::ThreadProc, boost::ref(Threads[i]), boost::ref(*this)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user