Add FetchNext to ShmEventLoop
I need this as a stop-gap until watchers work in simulation so that I
can receive every camera frame without using watchers.
Change-Id: Ic2c87fc11e69952ff8028e1484f5b236afdae70e
diff --git a/aos/events/raw-event-loop.h b/aos/events/raw-event-loop.h
index a903e93..d12187a 100644
--- a/aos/events/raw-event-loop.h
+++ b/aos/events/raw-event-loop.h
@@ -23,6 +23,10 @@
RawFetcher() {}
virtual ~RawFetcher() {}
+ // Non-blocking fetch of the next message in the queue. Returns true if there
+ // was a new message and we got it.
+ virtual bool FetchNext() = 0;
+ // Non-blocking fetch of the latest message:
virtual bool Fetch() = 0;
const FetchValue *most_recent() { return most_recent_; }