Classes | |
class | EventId |
Opaque handle for a scheduled event. More... | |
class | ScopedEventId |
Cancels an event automatically upon destruction. More... | |
Functions | |
Scheduler & | getGlobalScheduler () |
EventId | schedule (time::nanoseconds after, const EventCallback &event) |
Schedule an event. More... | |
void | cancel (const EventId &eventId) |
Cancel a scheduled event. More... | |
void | resetGlobalScheduler () |
Variables | |
static boost::thread_specific_ptr< Scheduler > | g_scheduler |
Scheduler & nfd::scheduler::getGlobalScheduler | ( | ) |
Definition at line 37 of file scheduler.cpp.
References g_scheduler.
Referenced by cancel(), ns3::ndn::L3Protocol::DoDispose(), and schedule().
EventId nfd::scheduler::schedule | ( | time::nanoseconds | after, |
const EventCallback & | event | ||
) |
Schedule an event.
Definition at line 48 of file scheduler.cpp.
References getGlobalScheduler().
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::cancel | ( | const EventId & | eventId | ) |
Cancel a scheduled event.
Definition at line 54 of file scheduler.cpp.
References getGlobalScheduler().
Referenced by nfd::fw::NccStrategy::beforeSatisfyInterest(), nfd::scheduler::ScopedEventId::cancel(), nfd::rib::RibEntry::eraseRoute(), nfd::fw::asf::NamespaceInfo::extendFaceInfoLifetime(), nfd::measurements::Measurements::extendLifetime(), nfd::rib::Rib::insert(), nfd::scheduler::ScopedEventId::operator=(), nfd::DeadNonceList::~DeadNonceList(), nfd::fw::asf::FaceInfo::~FaceInfo(), nfd::fw::NccStrategy::PitEntryInfo::~PitEntryInfo(), and nfd::scheduler::ScopedEventId::~ScopedEventId().
void nfd::scheduler::resetGlobalScheduler | ( | ) |
Definition at line 60 of file scheduler.cpp.
References g_scheduler.
|
static |
Definition at line 34 of file scheduler.cpp.
Referenced by getGlobalScheduler(), and resetGlobalScheduler().