30 static thread_local std::unique_ptr<boost::asio::io_context>
g_ioCtx;
31 static thread_local std::unique_ptr<ndn::Scheduler>
g_scheduler;
35 boost::asio::io_context&
39 g_ioCtx = std::make_unique<boost::asio::io_context>();
55 resetGlobalIoService()
62 boost::asio::io_context&
69 boost::asio::io_context&
ndn::Scheduler & getScheduler()
Returns the global Scheduler instance for the calling thread.
void setMainIoService(boost::asio::io_context *mainIo)
boost::asio::io_context & getRibIoService()
static boost::asio::io_context * g_ribIoCtx
void setRibIoService(boost::asio::io_context *ribIo)
static boost::asio::io_context * g_mainIoCtx
static thread_local std::unique_ptr< boost::asio::io_context > g_ioCtx
boost::asio::io_context & getMainIoService()
boost::asio::io_context & getGlobalIoService()
Returns the global io_context instance for the calling thread.
static thread_local std::unique_ptr< ndn::Scheduler > g_scheduler