28 #if NDN_CXX_HAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE 29 static_assert(std::is_nothrow_move_constructible<ScopedEventId>::value,
30 "ScopedEventId must be MoveConstructible with noexcept");
31 #endif // NDN_CXX_HAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE 34 : m_scheduler(&scheduler)
39 : m_scheduler(other.m_scheduler)
40 , m_event(other.m_event)
48 if (m_event != event) {
Copyright (c) 2013-2017 Regents of the University of California.
ScopedEventId(Scheduler &scheduler)
Construct ScopedEventId tied to the specified scheduler.
void reset()
clear this EventId
void cancelEvent(const EventId &eventId)
Cancel a scheduled event.
void release() noexcept
releases the event so that it won't be canceled when this ScopedEventId is destructed ...
~ScopedEventId() noexcept
cancels the event
Event that is automatically cancelled upon destruction.
void cancel()
cancels the event manually
ScopedEventId & operator=(const EventId &event)
assigns an event
Identifies a scheduled event.