Kagome
Polkadot Runtime Engine in C++17
kagome::offchain::OffchainWorkerPoolImpl Class Referencefinal

#include <offchain_worker_pool_impl.hpp>

Inheritance diagram for kagome::offchain::OffchainWorkerPoolImpl:
Collaboration diagram for kagome::offchain::OffchainWorkerPoolImpl:

Public Member Functions

 OffchainWorkerPoolImpl ()
 
void addWorker (std::shared_ptr< OffchainWorker > ofw) override
 
std::optional< std::shared_ptr< OffchainWorker > > getWorker () const override
 
bool removeWorker () override
 
- Public Member Functions inherited from kagome::offchain::OffchainWorkerPool
virtual ~OffchainWorkerPool ()=default
 

Private Attributes

log::Logger log_
 
SafeObject< std::unordered_map< ThreadNumber, std::shared_ptr< OffchainWorker > > > offchain_workers_
 

Detailed Description

Definition at line 19 of file offchain_worker_pool_impl.hpp.

Constructor & Destructor Documentation

kagome::offchain::OffchainWorkerPoolImpl::OffchainWorkerPoolImpl ( )

Definition at line 12 of file offchain_worker_pool_impl.cpp.

Member Function Documentation

void kagome::offchain::OffchainWorkerPoolImpl::addWorker ( std::shared_ptr< OffchainWorker ofw)
overridevirtual
std::optional< std::shared_ptr< OffchainWorker > > kagome::offchain::OffchainWorkerPoolImpl::getWorker ( ) const
overridevirtual
bool kagome::offchain::OffchainWorkerPoolImpl::removeWorker ( )
overridevirtual

Member Data Documentation

log::Logger kagome::offchain::OffchainWorkerPoolImpl::log_
private

Definition at line 30 of file offchain_worker_pool_impl.hpp.

SafeObject< std::unordered_map<ThreadNumber, std::shared_ptr<OffchainWorker> > > kagome::offchain::OffchainWorkerPoolImpl::offchain_workers_
private

Definition at line 33 of file offchain_worker_pool_impl.hpp.


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