Add set_name to event_loop.
Change-Id: I2ab1486eb8a348ceeec00ab170e2474d7fe25167
diff --git a/aos/events/raw-event-loop.h b/aos/events/raw-event-loop.h
index 6ff7179..7ab2810 100644
--- a/aos/events/raw-event-loop.h
+++ b/aos/events/raw-event-loop.h
@@ -138,6 +138,9 @@
// Use this to run code once the thread goes into "real-time-mode",
virtual void OnRun(::std::function<void()> on_run) = 0;
+ // Sets the name of the event loop.
+ virtual void set_name(const char *name) = 0;
+
// Threadsafe.
bool is_running() const { return is_running_.load(); }