aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2016-05-06 11:01:51 +0200
committerPavel Janík <Pavel@Janik.cz>2016-05-06 20:44:40 +0200
commit166e4b0dfa283fbdedc9a6a1e83296500c853a31 (patch)
tree1f947339a0e81e65336b2d971fa9944f568df9b3 /src
parentdb18ab28c7a74bb289bfe6a5f9a4a9f963f71c0b (diff)
Notify other serviceQueue thread we are finished to prevent deadlocks.
Diffstat (limited to 'src')
-rw-r--r--src/scheduler.cpp1
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)