Use the event loop name instead of thread name for AOS_LOG
This kills 2 birds with 1 stone.
1) A simulated event loop should print out the name of each event
loop, not the program name.
2) prctl(PR_GET_NAME, thread_name_array) can require higher privileges
sometimes, and is un-necesary for simulations. See 1)
Change-Id: I48731b1cabe34ec66a97f27ee720ba3081da4e94
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/events/shm_event_loop.h b/aos/events/shm_event_loop.h
index 3245f11..71dff4e 100644
--- a/aos/events/shm_event_loop.h
+++ b/aos/events/shm_event_loop.h
@@ -38,8 +38,11 @@
ShmEventLoop(const Flatbuffer<Configuration> &configuration)
: ShmEventLoop(&configuration.message()) {}
ShmEventLoop(const Configuration *configuration);
+ ShmEventLoop(const ShmEventLoop &) = delete;
~ShmEventLoop() override;
+ void operator=(ShmEventLoop const &) = delete;
+
// Runs the event loop until Exit is called, or ^C is caught.
void Run();
// Exits the event loop. Async safe.