diff --git a/common/concurrent_queue.h b/common/concurrent_queue.h index 86bbcdcf..99505df7 100644 --- a/common/concurrent_queue.h +++ b/common/concurrent_queue.h @@ -45,7 +45,8 @@ public: void cancellPending() { - std::unique_lock lock(queueMutex); + std::unique_lock lockQueue(queueMutex); + std::unique_lock lockJobsLeft(jobsLeftMutex); _queue = std::queue>(); jobsLeft = 0; }