Classes | |
class | EventId |
A handle for a scheduled event. More... | |
class | Scheduler |
Generic time-based scheduler. More... | |
Typedefs | |
using | EventCallback = std::function< void()> |
Function to be invoked when a scheduled event expires. More... | |
using | ScopedEventId = detail::ScopedCancelHandle< EventId > |
A scoped handle for a scheduled event. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &os, const EventId &eventId) |
using ndn::scheduler::EventCallback = typedef std::function<void()> |
Function to be invoked when a scheduled event expires.
Definition at line 47 of file scheduler.hpp.
using ndn::scheduler::ScopedEventId = typedef detail::ScopedCancelHandle<EventId> |
A scoped handle for a scheduled event.
Upon destruction of this handle, the event is canceled automatically. Most commonly, the application keeps a ScopedEventId as a class member field, so that it can cleanup its event when the class instance is destructed.
Definition at line 130 of file scheduler.hpp.
std::ostream & ndn::scheduler::operator<< | ( | std::ostream & | os, |
const EventId & | eventId | ||
) |
Definition at line 72 of file scheduler.cpp.