mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
Revert "ThreadPool#Stop(): discard non-processed queue items"
This reverts commit 30e6d0f809c47de4204b949263fa209da42e975c. refs #6815
This commit is contained in:
parent
b58ce84b0e
commit
bf4ecbed69
@ -73,7 +73,6 @@ void ThreadPool::Stop()
|
|||||||
for (auto& queue : m_Queues) {
|
for (auto& queue : m_Queues) {
|
||||||
boost::mutex::scoped_lock lock(queue.Mutex);
|
boost::mutex::scoped_lock lock(queue.Mutex);
|
||||||
queue.Stopped = true;
|
queue.Stopped = true;
|
||||||
queue.Items.clear();
|
|
||||||
queue.CV.notify_all();
|
queue.CV.notify_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user