hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::subscription::SchedulerBase Class Reference

#include "scheduler_impl.hpp"

Inheritance diagram for iroha::subscription::SchedulerBase:
Inheritance graph
Collaboration diagram for iroha::subscription::SchedulerBase:
Collaboration graph

Public Member Functions

 SchedulerBase ()
 
uint32_t process ()
 
void dispose (bool wait_for_release=true) override
 Stops sheduler work and tasks execution. More...
 
bool isBusy () const override
 Checks if current scheduler executes task. More...
 
void add (Task &&t) override
 Adds task to execution queue. More...
 
void addDelayed (std::chrono::microseconds timeout, Task &&t) override
 Adds delayed task to execution queue. More...
 
- Public Member Functions inherited from iroha::subscription::IScheduler
virtual ~IScheduler ()
 

Additional Inherited Members

- Public Types inherited from iroha::subscription::IScheduler
using Task = std::function< void()>
 

Constructor & Destructor Documentation

◆ SchedulerBase()

iroha::subscription::SchedulerBase::SchedulerBase ( )
inline

Member Function Documentation

◆ add()

void iroha::subscription::SchedulerBase::add ( Task &&  t)
inlineoverridevirtual

Adds task to execution queue.

Implements iroha::subscription::IScheduler.

Here is the call graph for this function:

◆ addDelayed()

void iroha::subscription::SchedulerBase::addDelayed ( std::chrono::microseconds  timeout,
Task &&  t 
)
inlineoverridevirtual

Adds delayed task to execution queue.

Implements iroha::subscription::IScheduler.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dispose()

void iroha::subscription::SchedulerBase::dispose ( bool  wait_for_release = true)
inlineoverridevirtual

Stops sheduler work and tasks execution.

Implements iroha::subscription::IScheduler.

Reimplemented in iroha::subscription::ThreadHandler.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isBusy()

bool iroha::subscription::SchedulerBase::isBusy ( ) const
inlineoverridevirtual

Checks if current scheduler executes task.

Implements iroha::subscription::IScheduler.

◆ process()

uint32_t iroha::subscription::SchedulerBase::process ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

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