Generic time-based scheduler. More...
#include <scheduler.hpp>
Public Member Functions | |
Scheduler (DummyIoService &ioService) | |
~Scheduler () | |
EventId | schedule (time::nanoseconds after, EventCallback callback) |
Schedule a one-time event after the specified delay. More... | |
void | cancelAllEvents () |
Cancel all scheduled events. More... | |
Generic time-based scheduler.
Definition at line 132 of file scheduler.hpp.
|
explicit |
Definition at line 86 of file scheduler.cpp.
ndn::scheduler::Scheduler::~Scheduler | ( | ) |
Definition at line 90 of file scheduler.cpp.
References cancelAllEvents().
EventId ndn::scheduler::Scheduler::schedule | ( | time::nanoseconds | after, |
EventCallback | callback | ||
) |
Schedule a one-time event after the specified delay.
Definition at line 96 of file scheduler.cpp.
References nonstd::optional_lite::std11::move().
Referenced by ndn::Face::Impl::Impl(), ndn::security::v2::CertificateFetcherFromNetwork::nackCallback(), ndn::InMemoryStorageEntry::scheduleMarkStale(), and ndn::util::SegmentFetcher::stop().
void ndn::scheduler::Scheduler::cancelAllEvents | ( | ) |
Cancel all scheduled events.
Definition at line 132 of file scheduler.cpp.
Referenced by ~Scheduler().