aboutsummaryrefslogtreecommitdiff
path: root/src/scheduler.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-05-10 12:07:47 +0200
committerWladimir J. van der Laan <[email protected]>2016-05-10 12:08:08 +0200
commit5767e80dda7a699597b4798d1546e618edb50928 (patch)
tree19669c274817b11fa0b036414a081f6c2871cf04 /src/scheduler.cpp
parentMerge #8012: Qt: Delay user confirmation of send (diff)
parentNotify other serviceQueue thread we are finished to prevent deadlocks. (diff)
downloaddiscoin-5767e80dda7a699597b4798d1546e618edb50928.tar.xz
discoin-5767e80dda7a699597b4798d1546e618edb50928.zip
Merge #8016: Fix multithread CScheduler and reenable test
166e4b0 Notify other serviceQueue thread we are finished to prevent deadlocks. (Pavel Janík) db18ab2 Reenable multithread scheduler test. (Pavel Janík)
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)