Add basic support for nodes
This adds the infrastructure and configuration language to describe a
multinode world. This only checks that if there are multiple nodes
setup, everything is both configured for multiple nodes, and that we are
listening and sending data on the correct node per the configuration.
Change-Id: I658ba05620337a210d677c43e5eb840e05f96051
diff --git a/aos/events/shm_event_loop.h b/aos/events/shm_event_loop.h
index 5063186..d10989e 100644
--- a/aos/events/shm_event_loop.h
+++ b/aos/events/shm_event_loop.h
@@ -67,6 +67,7 @@
UpdateTimingReport();
}
const std::string_view name() const override { return name_; }
+ const Node *node() const override { return node_; }
int priority() const override { return priority_; }
@@ -89,6 +90,7 @@
std::vector<std::function<void()>> on_run_;
int priority_ = 0;
std::string name_;
+ const Node *const node_;
std::vector<std::string> taken_;
internal::EPoll epoll_;