blob: 727d8069bc0f8a16fd279be6ae6873912d41608e [file] [log] [blame]
Brian Silverman76f48362022-08-24 21:09:08 -07001#include "aos/events/event_loop_runtime.h"
2
3namespace aos {
4
5OnRunForRust::OnRunForRust(EventLoopRuntime *runtime) : runtime_(runtime) {
6 ++runtime->child_count_;
7}
8OnRunForRust::~OnRunForRust() { --runtime_->child_count_; }
9bool OnRunForRust::is_running() const { return runtime_->is_running(); }
10
11} // namespace aos