17 #ifndef CYBER_SCHEDULER_POLICY_SCHEDULER_CHOREOGRAPHY_H_ 18 #define CYBER_SCHEDULER_POLICY_SCHEDULER_CHOREOGRAPHY_H_ 22 #include <unordered_map> 26 #include "cyber/proto/choreography_conf.pb.h" 34 using apollo::cyber::proto::ChoreographyTask;
39 bool RemoveTask(
const std::string& name)
override;
40 bool DispatchTask(
const std::shared_ptr<CRoutine>&)
override;
46 void CreateProcessor();
47 bool NotifyProcessor(uint64_t crid)
override;
49 std::unordered_map<std::string, ChoreographyTask> cr_confs_;
51 int32_t choreography_processor_prio_;
52 int32_t pool_processor_prio_;
54 std::string choreography_affinity_;
55 std::string pool_affinity_;
57 std::string choreography_processor_policy_;
58 std::string pool_processor_policy_;
60 std::vector<int> choreography_cpuset_;
61 std::vector<int> pool_cpuset_;
68 #endif // CYBER_SCHEDULER_POLICY_SCHEDULER_CHOREOGRAPHY_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.h:58
bool RemoveCRoutine(uint64_t crid) override
Definition: scheduler_choreography.h:36
bool DispatchTask(const std::shared_ptr< CRoutine > &) override
friend Scheduler * Instance()
bool RemoveTask(const std::string &name) override