std::vector< std::unique_ptr< std::thread > > threads
Definition: context.hh:33
boost::asio::io_service io
Definition: context.hh:13
Definition: context.hh:11
static Context * singleton
Definition: context.hh:23
void init()
Definition: context.cc:71
~Context()
Definition: context.cc:42
std::unique_ptr< Histogram > histogram
Definition: context.hh:17
Settings settings
Definition: context.hh:16
Context()
Definition: context.cc:38
std::unique_ptr< Logger, decltype(&Logger::disconnect)> logger
Definition: context.hh:15
bool join()
Definition: context.cc:65
void run()
Definition: context.cc:46
static Context * connect()
Definition: context.cc:24
boost::asio::io_service::work work
Definition: context.hh:34
int id
Definition: context.hh:18