Expose a unique index for each event loop buffer
This can be helpful for indexing into other datastructures based on the
messages, by giving an identifier which will be unique as long as the
message is pinned.
Change-Id: I49ce18fba25a796005e64b40e5d1d5c55ca15543
diff --git a/aos/events/shm_event_loop.h b/aos/events/shm_event_loop.h
index 57d3b98..d7ea5e6 100644
--- a/aos/events/shm_event_loop.h
+++ b/aos/events/shm_event_loop.h
@@ -24,8 +24,8 @@
} // namespace shm_event_loop_internal
-// Specialization of EventLoop that is built from queues running out of shared
-// memory.
+// Concrete implementation of EventLoop that is built from queues running out of
+// shared memory.
//
// TODO(austin): Timing reports break multiple threads. Need to add back in a
// mutex.
@@ -98,6 +98,8 @@
return GetShmFetcherPrivateMemory(GetRawFetcher(fetcher));
}
+ int NumberBuffers(const Channel *channel) override;
+
private:
friend class shm_event_loop_internal::ShmWatcherState;
friend class shm_event_loop_internal::ShmTimerHandler;