Make simulated_event_loop run with --die_on_malloc
We can't yet turn it on globally since some mallocs have snuck back in.
Gotta beat them back out first.
Change-Id: Ib0fc90746002240b5afca6b36eff2f4b29bbfbb0
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/events/pong_lib.h b/aos/events/pong_lib.h
index 7dc20d5..8b6641a 100644
--- a/aos/events/pong_lib.h
+++ b/aos/events/pong_lib.h
@@ -12,11 +12,15 @@
public:
Pong(EventLoop *event_loop);
+ void set_quiet(bool quiet) { quiet_ = quiet; }
+
private:
EventLoop *event_loop_;
aos::Sender<examples::Pong> sender_;
int32_t last_value_ = 0;
int32_t last_send_time_ = 0;
+
+ bool quiet_ = true;
};
} // namespace aos