Pārlūkot izejas kodu

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.
tags/v0.15.1
Matt Corallo pirms 3 gadiem
vecāks
revīzija
a56f8b0be3
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1
    0
      src/scheduler.cpp

+ 1
- 0
src/scheduler.cpp Parādīt failu

@@ -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;
}


Notiek ielāde…
Atcelt
Saglabāt