mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-16 10:30:41 +01:00
Add an interface to get the queue depth out of CValidationInterface
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user