mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 21:24:41 +02:00
Fix deadlock in WorkQueue::Join().
This commit is contained in:
parent
492aed030e
commit
65f4176fa8
@ -62,6 +62,8 @@ void WorkQueue::Join(void)
|
||||
{
|
||||
boost::mutex::scoped_lock lock(m_Mutex);
|
||||
m_Joined = true;
|
||||
m_CV.notify_all();
|
||||
|
||||
while (!m_Stopped)
|
||||
m_CV.wait(lock);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user