Kagome
Polkadot Runtime Engine in C++17
|
thread pool for serve RPC calls More...
#include <rpc_thread_pool.hpp>
Classes | |
struct | Configuration |
Public Types | |
using | Context = RpcContext |
Public Member Functions | |
RpcThreadPool (std::shared_ptr< Context > context, const Configuration &configuration) | |
~RpcThreadPool ()=default | |
void | start () |
starts pool More... | |
void | stop () |
stops pool More... | |
Private Attributes | |
std::shared_ptr< Context > | context_ |
const Configuration | config_ |
std::vector< std::shared_ptr< std::thread > > | threads_ |
log::Logger | logger_ = log::createLogger("RpcThreadPool", "rpc_transport") |
thread pool for serve RPC calls
Definition at line 22 of file rpc_thread_pool.hpp.
struct kagome::api::RpcThreadPool::Configuration |
Definition at line 26 of file rpc_thread_pool.hpp.
Class Members | ||
---|---|---|
size_t | max_thread_number | |
size_t | min_thread_number |
Definition at line 24 of file rpc_thread_pool.hpp.
kagome::api::RpcThreadPool::RpcThreadPool | ( | std::shared_ptr< Context > | context, |
const Configuration & | configuration | ||
) |
Definition at line 13 of file rpc_thread_pool.cpp.
|
default |
void kagome::api::RpcThreadPool::start | ( | ) |
starts pool
Definition at line 19 of file rpc_thread_pool.cpp.
void kagome::api::RpcThreadPool::stop | ( | ) |
stops pool
Definition at line 34 of file rpc_thread_pool.cpp.
|
private |
Definition at line 48 of file rpc_thread_pool.hpp.
|
private |
Definition at line 47 of file rpc_thread_pool.hpp.
|
private |
Definition at line 52 of file rpc_thread_pool.hpp.
|
private |
Definition at line 50 of file rpc_thread_pool.hpp.