BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | List of all members
fc::thread_idle_notifier Class Referenceabstract

#include <thread.hpp>

Inheritance diagram for fc::thread_idle_notifier:
fc::detail::idle_notifier_impl

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

virtual fc::thread_idle_notifier::~thread_idle_notifier ( )
inlinevirtual

Definition at line 26 of file thread.hpp.

Member Function Documentation

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.

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.

Returns
a task to execute, or nullptr

Implemented in fc::detail::idle_notifier_impl.


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