17 #ifndef CYBER_TIMER_TIMER_H_ 18 #define CYBER_TIMER_TIMER_H_ 113 bool InitTimerTask();
117 std::shared_ptr<TimerTask> task_;
118 std::atomic<bool> started_ = {
false};
124 #endif // CYBER_TIMER_TIMER_H_ Definition: timing_wheel.h:42
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
TimerOption()
Default constructor for initializer list.
Definition: timer.h:47
std::function< void()> callback
Definition: timer.h:57
bool oneshot
Definition: timer.h:63
Used to perform oneshot or periodic timing tasks.
Definition: timer.h:71
uint32_t period
The period of the timer, unit is ms max: 512 * 64 min: 1.
Definition: timer.h:54
The options of timer.
Definition: timer.h:32
TimerOption(uint32_t period, std::function< void()> callback, bool oneshot)
Construct a new Timer Option object.
Definition: timer.h:40