MCPcopy Create free account
hub / github.com/AimRT/AimRT / Initialize

Method Initialize

src/examples/cpp/context/module/executor/executor_module.cc:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace aimrt::examples::cpp::context::executor_module {
12
13bool 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
25bool ExecutorModule::Start() {
26 TimeScheduleDemo();

Callers

nothing calls this directly

Calls 3

LetMeMethod · 0.80
CreateExecutorMethod · 0.80
SupportTimerScheduleMethod · 0.45

Tested by

no test coverage detected