hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::subscription::SyncDispatcher< kCount, kPoolSize > Class Template Referencefinal

#include "sync_dispatcher_impl.hpp"

Inheritance diagram for iroha::subscription::SyncDispatcher< kCount, kPoolSize >:
Inheritance graph
Collaboration diagram for iroha::subscription::SyncDispatcher< kCount, kPoolSize >:
Collaboration graph

Public Member Functions

 SyncDispatcher ()=default
 
void dispose () override
 
void add (typename Parent::Tid, typename Parent::Task &&task) override
 
void addDelayed (typename Parent::Tid, std::chrono::microseconds, typename Parent::Task &&task) override
 
std::optional< Tidbind (std::shared_ptr< IScheduler > scheduler) override
 
bool unbind (Tid tid) override
 
- Public Member Functions inherited from iroha::subscription::IDispatcher
virtual ~IDispatcher ()
 

Additional Inherited Members

- Public Types inherited from iroha::subscription::IDispatcher
using Tid = uint32_t
 
using Task = IScheduler::Task
 
- Static Public Attributes inherited from iroha::subscription::IDispatcher
static constexpr Tid kExecuteInPool = std::numeric_limits<Tid>::max()
 

Constructor & Destructor Documentation

◆ SyncDispatcher()

template<uint32_t kCount, uint32_t kPoolSize>
iroha::subscription::SyncDispatcher< kCount, kPoolSize >::SyncDispatcher ( )
default

Member Function Documentation

◆ add()

template<uint32_t kCount, uint32_t kPoolSize>
void iroha::subscription::SyncDispatcher< kCount, kPoolSize >::add ( typename Parent::Tid  ,
typename Parent::Task &&  task 
)
inlineoverridevirtual

◆ addDelayed()

template<uint32_t kCount, uint32_t kPoolSize>
void iroha::subscription::SyncDispatcher< kCount, kPoolSize >::addDelayed ( typename Parent::Tid  ,
std::chrono::microseconds  ,
typename Parent::Task &&  task 
)
inlineoverridevirtual

◆ bind()

template<uint32_t kCount, uint32_t kPoolSize>
std::optional<Tid> iroha::subscription::SyncDispatcher< kCount, kPoolSize >::bind ( std::shared_ptr< IScheduler scheduler)
inlineoverridevirtual

◆ dispose()

template<uint32_t kCount, uint32_t kPoolSize>
void iroha::subscription::SyncDispatcher< kCount, kPoolSize >::dispose ( )
inlineoverridevirtual

◆ unbind()

template<uint32_t kCount, uint32_t kPoolSize>
bool iroha::subscription::SyncDispatcher< kCount, kPoolSize >::unbind ( Tid  tid)
inlineoverridevirtual

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