17 #ifndef CYBER_TIMER_TIMER_BUCKET_H_ 18 #define CYBER_TIMER_TIMER_BUCKET_H_ 31 void AddTask(
const std::shared_ptr<TimerTask>& task) {
32 std::lock_guard<std::mutex> lock(mutex_);
33 task_list_.push_back(task);
36 std::mutex&
mutex() {
return mutex_; }
37 std::list<std::weak_ptr<TimerTask>>&
task_list() {
return task_list_; }
41 std::list<std::weak_ptr<TimerTask>> task_list_;
47 #endif // CYBER_TIMER_TIMER_BUCKET_H_ Definition: timer_bucket.h:29
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
std::list< std::weak_ptr< TimerTask > > & task_list()
Definition: timer_bucket.h:37
std::mutex & mutex()
Definition: timer_bucket.h:36
void AddTask(const std::shared_ptr< TimerTask > &task)
Definition: timer_bucket.h:31