Classes | |
class | ScopedEventId |
cancels an event automatically upon destruction More... | |
Typedefs | |
typedef std::shared_ptr< ns3::EventId > | EventId |
Functions | |
EventId | schedule (const time::nanoseconds &after, const std::function< void()> &event) |
schedule an event More... | |
void | cancel (const EventId &eventId) |
cancel a scheduled event More... | |
typedef std::shared_ptr<ns3::EventId> nfd::scheduler::EventId |
Definition at line 39 of file scheduler.hpp.
EventId nfd::scheduler::schedule | ( | const time::nanoseconds & | after, |
const std::function< void()> & | event | ||
) |
schedule an event
Definition at line 50 of file scheduler.cpp.
Referenced by nfd::DeadNonceList::add(), nfd::fw::NccStrategy::afterReceiveInterest(), nfd::fw::AccessStrategy::afterReceiveInterest(), nfd::EthernetFace::close(), nfd::compare_InRecord_expiry(), nfd::TcpChannel::connect(), nfd::DeadNonceList::DeadNonceList(), nfd::fw::NccStrategy::doPropagate(), nfd::rib::RibManager::enableLocalControlHeader(), nfd::Measurements::extendLifetime(), nfd::UdpFace::getFaceStatus(), nfd::Nfd::initialize(), nfd::Measurements::Measurements(), nfd::cs::priority_fifo::PriorityFifoPolicy::PriorityFifoPolicy(), nfd::ndnlp::PartialMessageStore::receive(), nfd::InternalFace::sendInterest(), nfd::rib::RibManager::setConfigFile(), nfd::UdpFace::UdpFace(), nfd::rib::RemoteRegistrator::unregisterPrefix(), and nfd::WebSocketChannel::WebSocketChannel().
void nfd::scheduler::cancel | ( | const EventId & | eventId | ) |
cancel a scheduled event
Definition at line 58 of file scheduler.cpp.
Referenced by nfd::fw::NccStrategy::beforeSatisfyInterest(), nfd::scheduler::ScopedEventId::cancel(), nfd::WebSocketFace::close(), nfd::EthernetFace::close(), nfd::compare_InRecord_expiry(), nfd::rib::RibManager::enableLocalControlHeader(), nfd::rib::RibEntry::eraseRoute(), nfd::Measurements::extendLifetime(), nfd::rib::Rib::insert(), nfd::scheduler::ScopedEventId::operator=(), nfd::cs::priority_fifo::PriorityFifoPolicy::PriorityFifoPolicy(), nfd::TcpChannel::size(), nfd::rib::RemoteRegistrator::unregisterPrefix(), nfd::DeadNonceList::~DeadNonceList(), nfd::fw::NccStrategy::PitEntryInfo::~PitEntryInfo(), nfd::rib::RemoteRegistrator::~RemoteRegistrator(), nfd::rib::RibManager::~RibManager(), and nfd::scheduler::ScopedEventId::~ScopedEventId().