aboutsummaryrefslogtreecommitdiff
path: root/src/scheduler.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2017-12-04 18:31:36 -0500
committerMatt Corallo <[email protected]>2017-12-26 11:54:49 -0500
commit5a933cefcc5e0595a1ec46fc5ea287aa163ecd3f (patch)
tree63bcb653e77c838a7e511dcdd6eb1d49cd125c5c /src/scheduler.cpp
parentRequire no cs_main lock for ProcessNewBlock/ActivateBestChain (diff)
downloaddiscoin-5a933cefcc5e0595a1ec46fc5ea287aa163ecd3f.tar.xz
discoin-5a933cefcc5e0595a1ec46fc5ea287aa163ecd3f.zip
Add an interface to get the queue depth out of CValidationInterface
Diffstat (limited to 'src/scheduler.cpp')
-rw-r--r--src/scheduler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/scheduler.cpp b/src/scheduler.cpp
index 260f6fa60..7d5ec1461 100644
--- a/src/scheduler.cpp
+++ b/src/scheduler.cpp
@@ -206,3 +206,8 @@ void SingleThreadedSchedulerClient::EmptyQueue() {
should_continue = !m_callbacks_pending.empty();
}
}
+
+size_t SingleThreadedSchedulerClient::CallbacksPending() {
+ LOCK(m_cs_callbacks_pending);
+ return m_callbacks_pending.size();
+}