| 11 | namespace aimrt::examples::cpp::context::executor_module { |
| 12 | |
| 13 | bool ExecutorModule::Initialize(aimrt::CoreRef core) { |
| 14 | ctx_ptr_ = std::make_shared<aimrt::context::Context>(core); |
| 15 | ctx_ptr_->LetMe(); |
| 16 | time_schedule_executor_ = ctx_ptr_->CreateExecutor("time_schedule_executor"); |
| 17 | |
| 18 | AIMRT_CHECK_ERROR_THROW(time_schedule_executor_ && time_schedule_executor_.SupportTimerSchedule(), |
| 19 | "Can not get time_schedule_executor"); |
| 20 | |
| 21 | AIMRT_INFO("Init succeeded."); |
| 22 | return true; |
| 23 | } |
| 24 | |
| 25 | bool ExecutorModule::Start() { |
| 26 | TimeScheduleDemo(); |
nothing calls this directly
no test coverage detected