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

Method Initialize

src/examples/cpp/context/module/logger/logger_module.cc:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace aimrt::examples::cpp::context::logger_module {
8
9bool LoggerModule::Initialize(aimrt::CoreRef core) {
10 ctx_ptr_ = std::make_shared<aimrt::context::Context>(core);
11 ctx_ptr_->LetMe();
12
13 // Get executor handle
14 executor_ = ctx_ptr_->CreateExecutor("work_executor");
15
16 return true;
17}
18
19bool LoggerModule::Start() {
20 executor_.Execute([this]() {

Callers

nothing calls this directly

Calls 2

LetMeMethod · 0.80
CreateExecutorMethod · 0.80

Tested by

no test coverage detected