Project

General

Profile

Actions

Feature #2295

closed

Scheduler: ScopedEventId

Added by Junxiao Shi almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Core
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

Develop a ScopedEventId type which stores an EventId and cancels it upon destruction.

  • ScopedEventId is default constructible; it doesn't contain an EventId when default constructed
  • ScopedEventId is implicitly constructible from EventId
  • ScopedEventId is assignable from EventId
  • when ScopedEventId is destructed, the EventId it holds is cancelled
  • when a different EventId is assigned to ScopedEventId, the EventId it previously holds is cancelled
  • ScopedEventId is noncopyable
  • ScopedEventId is moveable

Related issues 1 (0 open1 closed)

Blocks NFD - Feature #1999: Strategy for access routerClosedJunxiao Shi

Actions
Actions

Also available in: Atom PDF