26 #ifndef NFD_CORE_SCHEDULER_HPP 27 #define NFD_CORE_SCHEDULER_HPP 31 #include <ndn-cxx/util/scheduler.hpp> 43 using ndn::util::scheduler::EventCallback;
48 schedule(time::nanoseconds after,
const EventCallback& event);
53 cancel(
const EventId& eventId);
100 #endif // NFD_CORE_SCHEDULER_HPP ~ScopedEventId()
Cancels the event.
void cancel(const EventId &eventId)
Cancel a scheduled event.
Cancels an event automatically upon destruction.
void release()
Releases the event so that it won't be cancelled when this ScopedEventId is destructed.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
ScopedEventId & operator=(const EventId &event)
Assigns an event.
EventId schedule(time::nanoseconds after, const EventCallback &event)
Schedule an event.
void cancel()
Cancels the event manually.
Opaque handle for a scheduled event.