Classes | |
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 47 of file scheduler.cpp.
References getGlobalScheduler().
Referenced by nfd::fw::NccStrategy::afterReceiveInterest(), nfd::face::TcpChannel::connect(), nfd::DeadNonceList::DeadNonceList(), 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(), nfd::fw::asf::ProbingModule::scheduleProbe(), and nfd::detail::SimulatorIodispatch().
void nfd::scheduler::cancel | ( | const EventId & | eventId | ) |
cancel a scheduled event
Definition at line 53 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 59 of file scheduler.cpp.
References g_scheduler.
|
static |
Definition at line 34 of file scheduler.cpp.
Referenced by getGlobalScheduler(), and resetGlobalScheduler().