mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
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.
This commit is contained in:
parent
0c173a15ca
commit
a56f8b0be3
@ -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…
Reference in New Issue
Block a user