From a56f8b0be3700d608a5634af8c862910f4be2191 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 23 Jul 2017 14:51:22 -0400 Subject: [PATCH] Add missing lock in CScheduler::AreThreadsServicingQueue() Not an actual bug as this is only used in asserts right now, but nice to not have a missing lock. --- src/scheduler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scheduler.cpp b/src/scheduler.cpp index 36a6d5110..1d3fb1f6e 100644 --- a/src/scheduler.cpp +++ b/src/scheduler.cpp @@ -141,6 +141,7 @@ size_t CScheduler::getQueueInfo(boost::chrono::system_clock::time_point &first, } bool CScheduler::AreThreadsServicingQueue() const { + boost::unique_lock lock(newTaskMutex); return nThreadsServicingQueue; }