mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue