BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
fc::detail::idle_notifier_impl Class Reference
Inheritance diagram for fc::detail::idle_notifier_impl:
fc::thread_idle_notifier

Public Member Functions

 idle_notifier_impl ()
 
 idle_notifier_impl (const idle_notifier_impl &copy)
 
virtual ~idle_notifier_impl ()
 
virtual task_baseidle ()
 
virtual void busy ()
 
- Public Member Functions inherited from fc::thread_idle_notifier
virtual ~thread_idle_notifier ()
 

Public Attributes

uint32_t id
 
pool_implmy_pool
 
boost::atomic< bool > is_idle
 

Detailed Description

Definition at line 35 of file parallel.cpp.

Constructor & Destructor Documentation

fc::detail::idle_notifier_impl::idle_notifier_impl ( )
inline

Definition at line 38 of file parallel.cpp.

fc::detail::idle_notifier_impl::idle_notifier_impl ( const idle_notifier_impl copy)
inline

Definition at line 43 of file parallel.cpp.

virtual fc::detail::idle_notifier_impl::~idle_notifier_impl ( )
inlinevirtual

Definition at line 50 of file parallel.cpp.

Member Function Documentation

virtual void fc::detail::idle_notifier_impl::busy ( )
inlinevirtual

This method is called when the thread is no longer idle, e. g. after it has woken up due to a timer or signal.

Implements fc::thread_idle_notifier.

Definition at line 53 of file parallel.cpp.

task_base * fc::detail::idle_notifier_impl::idle ( )
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

Implements fc::thread_idle_notifier.

Definition at line 126 of file parallel.cpp.

Member Data Documentation

uint32_t fc::detail::idle_notifier_impl::id

Definition at line 58 of file parallel.cpp.

boost::atomic<bool> fc::detail::idle_notifier_impl::is_idle

Definition at line 60 of file parallel.cpp.

pool_impl* fc::detail::idle_notifier_impl::my_pool

Definition at line 59 of file parallel.cpp.


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