BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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

◆ idle_notifier_impl() [1/2]

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

Definition at line 38 of file parallel.cpp.

◆ idle_notifier_impl() [2/2]

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

Definition at line 43 of file parallel.cpp.

◆ ~idle_notifier_impl()

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

Definition at line 50 of file parallel.cpp.

Member Function Documentation

◆ busy()

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.

◆ idle()

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

◆ id

uint32_t fc::detail::idle_notifier_impl::id

Definition at line 58 of file parallel.cpp.

◆ is_idle

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

Definition at line 60 of file parallel.cpp.

◆ my_pool

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: