mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-16 18:24:31 +02:00
ThreadPool: Add missing lock.
This commit is contained in:
parent
2ee657fb0c
commit
3261ad7106
@ -192,6 +192,7 @@ void ThreadPool::QueueThreadProc(int tid)
|
|||||||
#endif /* _DEBUG */
|
#endif /* _DEBUG */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boost::mutex::scoped_lock lock(m_Mutex);
|
||||||
UpdateThreadUtilization(tid, ThreadDead);
|
UpdateThreadUtilization(tid, ThreadDead);
|
||||||
m_ThreadStats[tid].Zombie = false;
|
m_ThreadStats[tid].Zombie = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user