diff options
author | Matt Corallo <git@bluematt.me> | 2017-06-27 19:07:52 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-07-07 12:55:57 -0400 |
commit | 3192975f1d177aa9f0bbd823c6387cfbfa943610 (patch) | |
tree | c14016ecb6fc50d7fc33b002368348efa8e12745 /src/scheduler.h | |
parent | 08096bbbc6d6fef86943ca8ce5e6de18744d58ea (diff) |
Flush CValidationInterface callbacks prior to destruction
Note that the CScheduler thread cant be running at this point,
it has already been stopped with the rest of the init threadgroup.
Thus, just calling any remaining loose callbacks during Shutdown()
is sane.
Diffstat (limited to 'src/scheduler.h')
-rw-r--r-- | src/scheduler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scheduler.h b/src/scheduler.h index 82036afdf0..6a079f7749 100644 --- a/src/scheduler.h +++ b/src/scheduler.h @@ -101,6 +101,9 @@ private: public: SingleThreadedSchedulerClient(CScheduler *pschedulerIn) : m_pscheduler(pschedulerIn) {} void AddToProcessQueue(std::function<void (void)> func); + + // Processes all remaining queue members on the calling thread, blocking until queue is empty + void EmptyQueue(); }; #endif |