aboutsummaryrefslogtreecommitdiff
path: root/src/scheduler.cpp
diff options
context:
space:
mode:
authorPavel Janík <[email protected]>2016-05-06 11:01:51 +0200
committerPavel Janík <[email protected]>2016-05-06 20:44:40 +0200
commit166e4b0dfa283fbdedc9a6a1e83296500c853a31 (patch)
tree1f947339a0e81e65336b2d971fa9944f568df9b3 /src/scheduler.cpp
parentReenable multithread scheduler test. (diff)
downloaddiscoin-166e4b0dfa283fbdedc9a6a1e83296500c853a31.tar.xz
discoin-166e4b0dfa283fbdedc9a6a1e83296500c853a31.zip
Notify other serviceQueue thread we are finished to prevent deadlocks.
Diffstat (limited to 'src/scheduler.cpp')
-rw-r--r--src/scheduler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scheduler.cpp b/src/scheduler.cpp
index 184ddc28a..52777b61f 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)