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

Method TimeScheduleDemo

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

Source from the content-addressed store, hash-verified

35}
36
37void ExecutorModule::TimeScheduleDemo() {
38 const auto count = ++loop_count_;
39 AIMRT_INFO("Timer loop count : {}", count);
40
41 time_schedule_executor_.ExecuteAfter(
42 std::chrono::seconds(1),
43 [this]() {
44 ctx_ptr_->LetMe();
45 if (!aimrt::context::Running()) {
46 return;
47 }
48 time_schedule_executor_.Execute([this] { TimeScheduleDemo(); });
49 });
50}
51
52} // namespace aimrt::examples::cpp::context::executor_module

Callers

nothing calls this directly

Calls 4

RunningFunction · 0.85
ExecuteAfterMethod · 0.80
LetMeMethod · 0.80
ExecuteMethod · 0.45

Tested by

no test coverage detected