commit | 6b6dfa5a91463a8a829d6e939f58b9fe8adbe80f | [log] [tgz] |
---|---|---|
author | Austin Schuh <austin.linux@gmail.com> | Wed Jun 12 20:16:20 2019 -0700 |
committer | Austin Schuh <austin.linux@gmail.com> | Sat Aug 10 19:33:36 2019 -0700 |
tree | 7b97da174f2c8d4cb5e8fb8c7bdf0ef3cd0e80d6 | |
parent | 27569776893b0558a5b969c8cbc522281313ec96 [diff] [blame] |
Run all timers in the main thread with epoll This ditches 1+ threads in all use cases. Change-Id: I8772a539c20cd10d80a57f3f53c48a3d8124461a
diff --git a/aos/events/simulated-event-loop.h b/aos/events/simulated-event-loop.h index 6ee7d92..81b181f 100644 --- a/aos/events/simulated-event-loop.h +++ b/aos/events/simulated-event-loop.h
@@ -120,6 +120,8 @@ is_running_ = false; } + bool is_running() const { return is_running_; } + void AddRawEventLoop(RawEventLoop *event_loop) { raw_event_loops_.push_back(event_loop); }