BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | List of all members
fc::thread_idle_notifier Class Referenceabstract

#include <thread.hpp>

Inheritance diagram for fc::thread_idle_notifier:

Public Member Functions

virtual ~thread_idle_notifier ()
virtual task_baseidle ()=0
virtual void busy ()=0

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~thread_idle_notifier()

virtual fc::thread_idle_notifier::~thread_idle_notifier ( )

Definition at line 26 of file thread.hpp.

Member Function Documentation

◆ busy()

virtual void fc::thread_idle_notifier::busy ( )
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.

◆ idle()

virtual task_base* fc::thread_idle_notifier::idle ( )
pure virtual

This method is called when the thread is idle. If it returns a task_base it will be queued and executed immediately.

a task to execute, or nullptr

Implemented in fc::detail::idle_notifier_impl.

The documentation for this class was generated from the following file: