Add an interface to get the queue depth out of CValidationInterface

This commit is contained in:
Matt Corallo
2017-12-04 18:31:36 -05:00
parent a99b76f269
commit 5a933cefcc
4 changed files with 14 additions and 0 deletions

View File

@@ -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();
}