Notify other serviceQueue thread we are finished to prevent deadlocks.

This commit is contained in:
Pavel Janík 2016-05-06 11:01:51 +02:00
parent db18ab28c7
commit 166e4b0dfa

View file

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