Wire Sysio Wire Sysion 1.0.0
|
#include <thread_utils.hpp>
Public Member Functions | |
named_thread_pool (std::string name_prefix, size_t num_threads) | |
~named_thread_pool () | |
boost::asio::io_context & | get_executor () |
void | stop () |
Wrapper class for boost asio thread pool and io_context run. Also names threads so that tools like htop can see thread name.
Definition at line 16 of file thread_utils.hpp.
sysio::chain::named_thread_pool::named_thread_pool | ( | std::string | name_prefix, |
size_t | num_threads ) |
Definition at line 10 of file thread_utils.cpp.
sysio::chain::named_thread_pool::~named_thread_pool | ( | ) |
|
inline |
Definition at line 25 of file thread_utils.hpp.
void sysio::chain::named_thread_pool::stop | ( | ) |
Definition at line 28 of file thread_utils.cpp.