global.cpp File Reference
#include "common/global.hpp"
+ Include dependency graph for global.cpp:

Go to the source code of this file.

Namespaces

 nfd
 -status-http-server
 

Functions

boost::asio::io_context & nfd::getGlobalIoService ()
 Returns the global io_context instance for the calling thread. More...
 
boost::asio::io_context & nfd::getMainIoService ()
 
boost::asio::io_context & nfd::getRibIoService ()
 
ndn::Scheduler & nfd::getScheduler ()
 Returns the global Scheduler instance for the calling thread. More...
 
void nfd::setMainIoService (boost::asio::io_context *mainIo)
 
void nfd::setRibIoService (boost::asio::io_context *ribIo)
 

Variables

static thread_local std::unique_ptr< boost::asio::io_context > nfd::g_ioCtx
 
static boost::asio::io_context * nfd::g_mainIoCtx = nullptr
 
static boost::asio::io_context * nfd::g_ribIoCtx = nullptr
 
static thread_local std::unique_ptr< ndn::Scheduler > nfd::g_scheduler