Skip to content

Commit a56f8b0

Browse files
committed
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.
1 parent 0c173a1 commit a56f8b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scheduler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ size_t CScheduler::getQueueInfo(boost::chrono::system_clock::time_point &first,
141141
}
142142

143143
bool CScheduler::AreThreadsServicingQueue() const {
144+
boost::unique_lock<boost::mutex> lock(newTaskMutex);
144145
return nThreadsServicingQueue;
145146
}
146147

0 commit comments

Comments
 (0)