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::DeadNonceList::add(), nfd::face::UnicastUdpTransport::afterChangePersistency(), nfd::face::UnicastEthernetTransport::afterChangePersistency(), nfd::fw::NccStrategy::afterReceiveInterest(), nfd::fw::AccessStrategy::afterReceiveInterest(), nfd::fw::asf::AsfStrategy::afterReceiveNack(), nfd::compare_InRecord_expiry(), nfd::face::TcpChannel::connect(), nfd::DeadNonceList::DeadNonceList(), nfd::rib::AutoPrefixPropagator::disable(), nfd::fw::NccStrategy::doPropagate(), nfd::fw::asf::NamespaceInfo::extendFaceInfoLifetime(), nfd::measurements::Measurements::extendLifetime(), nfd::face::TcpTransport::handleError(), nfd::face::LpReliability::handleOutgoing(), nfd::Nfd::initialize(), nfd::measurements::Measurements::Measurements(), nfd::rib::RibManager::onRibUpdateFailure(), nfd::face::LpReliability::piggyback(), nfd::detail::SimulatorIo::post(), nfd::rib::Readvertise::Readvertise(), nfd::face::LpReassembler::receiveFragment(), nfd::face::WebSocketTransport::receiveMessage(), nfd::fw::asf::ProbingModule::scheduleProbe(), nfd::detail::SimulatorIodispatch(), and nfd::cs::priority_fifo::PriorityFifoPolicy::~PriorityFifoPolicy().
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::compare_InRecord_expiry(), nfd::face::TcpChannel::connect(), nfd::rib::RibEntry::eraseRoute(), nfd::fw::asf::NamespaceInfo::extendFaceInfoLifetime(), nfd::measurements::Measurements::extendLifetime(), nfd::rib::Rib::insert(), nfd::scheduler::ScopedEventId::operator=(), nfd::fw::asf::FaceInfo::setTimeoutEvent(), nfd::DeadNonceList::~DeadNonceList(), nfd::fw::asf::FaceInfo::~FaceInfo(), nfd::fw::NccStrategy::PitEntryInfo::~PitEntryInfo(), nfd::cs::priority_fifo::PriorityFifoPolicy::~PriorityFifoPolicy(), and nfd::scheduler::ScopedEventId::~ScopedEventId().
void nfd::scheduler::resetGlobalScheduler | ( | ) |
Definition at line 59 of file scheduler.cpp.
|
static |
Definition at line 34 of file scheduler.cpp.
Referenced by getGlobalScheduler().