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

#include "scheduler.hpp"

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

Public Types

using Task = std::function< void()>
 

Public Member Functions

virtual ~IScheduler ()
 
virtual void dispose (bool wait_for_release=true)=0
 Stops sheduler work and tasks execution. More...
 
virtual bool isBusy () const =0
 Checks if current scheduler executes task. More...
 
virtual void add (Task &&t)=0
 Adds task to execution queue. More...
 
virtual void addDelayed (std::chrono::microseconds timeout, Task &&t)=0
 Adds delayed task to execution queue. More...
 

Member Typedef Documentation

◆ Task

using iroha::subscription::IScheduler::Task = std::function<void()>

Constructor & Destructor Documentation

◆ ~IScheduler()

virtual iroha::subscription::IScheduler::~IScheduler ( )
inlinevirtual
Here is the call graph for this function:

Member Function Documentation

◆ add()

virtual void iroha::subscription::IScheduler::add ( Task &&  t)
pure virtual

Adds task to execution queue.

Implemented in iroha::subscription::SchedulerBase.

Here is the caller graph for this function:

◆ addDelayed()

virtual void iroha::subscription::IScheduler::addDelayed ( std::chrono::microseconds  timeout,
Task &&  t 
)
pure virtual

Adds delayed task to execution queue.

Implemented in iroha::subscription::SchedulerBase.

Here is the caller graph for this function:

◆ dispose()

virtual void iroha::subscription::IScheduler::dispose ( bool  wait_for_release = true)
pure virtual

Stops sheduler work and tasks execution.

Implemented in iroha::subscription::SchedulerBase, and iroha::subscription::ThreadHandler.

Here is the caller graph for this function:

◆ isBusy()

virtual bool iroha::subscription::IScheduler::isBusy ( ) const
pure virtual

Checks if current scheduler executes task.

Implemented in iroha::subscription::SchedulerBase.

Here is the caller graph for this function:

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