| 35 | } |
| 36 | |
| 37 | void 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 |
nothing calls this directly
no test coverage detected