From 4c93c70de6249678f77e12f94a12f1a7e2b2eabd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 8 Feb 2021 08:32:42 +0100 Subject: [PATCH] Use the right mutex when the queue is modified --- common/concurrent_queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/concurrent_queue.h b/common/concurrent_queue.h index 5b92f6f1..86bbcdcf 100644 --- a/common/concurrent_queue.h +++ b/common/concurrent_queue.h @@ -45,7 +45,7 @@ public: void cancellPending() { - std::unique_lock lock(jobsLeftMutex); + std::unique_lock lock(queueMutex); _queue = std::queue>(); jobsLeft = 0; }