Brian Silverman | 76f4836 | 2022-08-24 21:09:08 -0700 | [diff] [blame^] | 1 | #include "aos/events/event_loop_runtime.h" |
2 | |||||
3 | namespace aos { | ||||
4 | |||||
5 | OnRunForRust::OnRunForRust(EventLoopRuntime *runtime) : runtime_(runtime) { | ||||
6 | ++runtime->child_count_; | ||||
7 | } | ||||
8 | OnRunForRust::~OnRunForRust() { --runtime_->child_count_; } | ||||
9 | bool OnRunForRust::is_running() const { return runtime_->is_running(); } | ||||
10 | |||||
11 | } // namespace aos |