Functions | |
Scheduler & | getGlobalScheduler () |
EventId | schedule (time::nanoseconds after, const EventCallback &event) |
Schedule an event. More... | |
void | resetGlobalScheduler () |
void | cancel (EventId eventId) |
Cancel a scheduled event. More... | |
Variables | |
static boost::thread_specific_ptr< Scheduler > | g_scheduler |
Scheduler& nfd::scheduler::getGlobalScheduler | ( | ) |
EventId nfd::scheduler::schedule | ( | time::nanoseconds | after, |
const EventCallback & | event | ||
) |
Schedule an event.
Definition at line 48 of file scheduler.cpp.
References getGlobalScheduler(), and ndn::util::scheduler::Scheduler::scheduleEvent().
Referenced by nfd::fw::NccStrategy::afterReceiveInterest(), nfd::face::TcpChannel::connect(), nfd::DeadNonceList::DeadNonceList(), nfd::detail::SimulatorIo::dispatch(), nfd::fw::NccStrategy::doPropagate(), nfd::fw::asf::NamespaceInfo::extendFaceInfoLifetime(), nfd::measurements::Measurements::extendLifetime(), nfd::face::LpReliability::handleOutgoing(), nfd::Nfd::initialize(), nfd::detail::SimulatorIo::post(), nfd::face::LpReassembler::receiveFragment(), and nfd::fw::asf::ProbingModule::scheduleProbe().
void nfd::scheduler::resetGlobalScheduler | ( | ) |
Definition at line 54 of file scheduler.cpp.
References g_scheduler.
Referenced by ns3::ndn::L3Protocol::DoDispose().
|
inline |
Cancel a scheduled event.
Definition at line 49 of file scheduler.hpp.
References ndn::detail::CancelHandle::cancel().
Referenced by nfd::fw::NccStrategy::beforeSatisfyInterest(), nfd::fw::asf::NamespaceInfo::extendFaceInfoLifetime(), nfd::measurements::Measurements::extendLifetime(), nfd::DeadNonceList::~DeadNonceList(), nfd::fw::asf::FaceInfo::~FaceInfo(), and nfd::fw::NccStrategy::PitEntryInfo::~PitEntryInfo().
|
static |
Definition at line 34 of file scheduler.cpp.
Referenced by getGlobalScheduler(), and resetGlobalScheduler().