From bf4ecbed692028a836be87a70ed344d1a96d1f05 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 6 Dec 2018 09:56:49 +0100 Subject: [PATCH] Revert "ThreadPool#Stop(): discard non-processed queue items" This reverts commit 30e6d0f809c47de4204b949263fa209da42e975c. refs #6815 --- lib/base/threadpool.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/base/threadpool.cpp b/lib/base/threadpool.cpp index b6b01ea78..1dad249bc 100644 --- a/lib/base/threadpool.cpp +++ b/lib/base/threadpool.cpp @@ -73,7 +73,6 @@ void ThreadPool::Stop() for (auto& queue : m_Queues) { boost::mutex::scoped_lock lock(queue.Mutex); queue.Stopped = true; - queue.Items.clear(); queue.CV.notify_all(); } -- 2.40.0