Browse Source

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.
0.15
Matt Corallo 8 years ago
parent
commit
a56f8b0be3
  1. 1
      src/scheduler.cpp

1
src/scheduler.cpp

@ -141,6 +141,7 @@ size_t CScheduler::getQueueInfo(boost::chrono::system_clock::time_point &first, @@ -141,6 +141,7 @@ size_t CScheduler::getQueueInfo(boost::chrono::system_clock::time_point &first,
}
bool CScheduler::AreThreadsServicingQueue() const {
boost::unique_lock<boost::mutex> lock(newTaskMutex);
return nThreadsServicingQueue;
}

Loading…
Cancel
Save