17 #ifndef CYBER_SCHEDULER_POLICY_SCHEDULER_CLASSIC_H_ 18 #define CYBER_SCHEDULER_POLICY_SCHEDULER_CLASSIC_H_ 22 #include <unordered_map> 26 #include "cyber/proto/classic_conf.pb.h" 34 using apollo::cyber::proto::ClassicConf;
35 using apollo::cyber::proto::ClassicTask;
40 bool RemoveTask(
const std::string& name)
override;
41 bool DispatchTask(
const std::shared_ptr<CRoutine>&)
override;
47 void CreateProcessor();
48 bool NotifyProcessor(uint64_t crid)
override;
50 std::unordered_map<std::string, ClassicTask> cr_confs_;
52 ClassicConf classic_conf_;
59 #endif // CYBER_SCHEDULER_POLICY_SCHEDULER_CLASSIC_H_ Definition: croutine.h:40
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: scheduler_classic.h:37
Definition: scheduler.h:58
bool DispatchTask(const std::shared_ptr< CRoutine > &) override
bool RemoveCRoutine(uint64_t crid) override
bool RemoveTask(const std::string &name) override
friend Scheduler * Instance()