Lines Matching defs:Timer
31 struct Timer struct
33 using ErrorCode = SchedulerTree::TimerErrorCode;
34 using TimePoint = SchedulerTree::TimePoint;
36 Timer(const SchedulerTree::TimerId timerId, in Timer() function
45 ~Timer() in ~Timer()
55 Timer(Timer&& rhs) in Timer() function
64 void expires_at(const TimePoint t) in expires_at()
78 void expires_from_now(std::chrono::duration<T, Rep> duration) in expires_from_now()
83 void cancel() in cancel()
90 void async_wait(Handler handler) in async_wait()
96 TimePoint now() const in now()
101 const SchedulerTree::TimerId mId;
102 const TimePoint& mNow;
103 TimePoint mExpiration;
104 std::weak_ptr<SchedulerTree> mpScheduler;
105 bool mbMovedFrom = false;