BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
#include <thread.hpp>
Public Member Functions | |
virtual | ~thread_idle_notifier () |
virtual task_base * | idle ()=0 |
virtual void | busy ()=0 |
Instances of this class can be used to get notifications when a thread is (or is no longer) idle.
Definition at line 24 of file thread.hpp.
|
inlinevirtual |
Definition at line 26 of file thread.hpp.
|
pure virtual |
This method is called when the thread is no longer idle, e. g. after it has woken up due to a timer or signal.
Implemented in fc::detail::idle_notifier_impl.
|
pure virtual |
This method is called when the thread is idle. If it returns a task_base it will be queued and executed immediately.
Implemented in fc::detail::idle_notifier_impl.