Notify other serviceQueue thread we are finished to prevent deadlocks.

pull/262/head
Pavel Janík 9 years ago
parent db18ab28c7
commit 166e4b0dfa

@ -79,6 +79,7 @@ void CScheduler::serviceQueue()
} }
} }
--nThreadsServicingQueue; --nThreadsServicingQueue;
newTaskScheduled.notify_one();
} }
void CScheduler::stop(bool drain) void CScheduler::stop(bool drain)

Loading…
Cancel
Save