6 #ifndef KAGOME_CORE_API_RPC_THREAD_POOL_HPP 7 #define KAGOME_CORE_API_RPC_THREAD_POOL_HPP 9 #include <boost/asio/io_service.hpp> 10 #include <boost/asio/signal_set.hpp> 22 class RpcThreadPool :
public std::enable_shared_from_this<RpcThreadPool> {
50 std::vector<std::shared_ptr<std::thread>>
threads_;
57 #endif // KAGOME_CORE_API_RPC_THREAD_POOL_HPP std::vector< std::shared_ptr< std::thread > > threads_
RpcThreadPool(std::shared_ptr< Context > context, const Configuration &configuration)
std::shared_ptr< Context > context_
std::shared_ptr< soralog::Logger > Logger
Logger createLogger(const std::string &tag)
const Configuration config_
thread pool for serve RPC calls