diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-05-06 11:01:51 +0200 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-05-06 20:44:40 +0200 |
commit | 166e4b0dfa283fbdedc9a6a1e83296500c853a31 (patch) | |
tree | 1f947339a0e81e65336b2d971fa9944f568df9b3 | |
parent | db18ab28c7a74bb289bfe6a5f9a4a9f963f71c0b (diff) |
Notify other serviceQueue thread we are finished to prevent deadlocks.
-rw-r--r-- | src/scheduler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scheduler.cpp b/src/scheduler.cpp index 184ddc28ab..52777b61f9 100644 --- a/src/scheduler.cpp +++ b/src/scheduler.cpp @@ -79,6 +79,7 @@ void CScheduler::serviceQueue() } } --nThreadsServicingQueue; + newTaskScheduled.notify_one(); } void CScheduler::stop(bool drain) |