From 4d470eb37fe31cc9899ee36e81134b35b02a36f3 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 23 Jan 2019 10:04:23 +0200 Subject: libcamera: event_dispatcher: Add interrupt() function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new interrupt() function allows interrupting in-progress blocking processEvents() calls. This is useful to stop running event loops. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Niklas Söderlund --- include/libcamera/event_dispatcher.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/libcamera/event_dispatcher.h') diff --git a/include/libcamera/event_dispatcher.h b/include/libcamera/event_dispatcher.h index c20518c6..cb06bf20 100644 --- a/include/libcamera/event_dispatcher.h +++ b/include/libcamera/event_dispatcher.h @@ -26,6 +26,8 @@ public: virtual void unregisterTimer(Timer *timer) = 0; virtual void processEvents() = 0; + + virtual void interrupt() = 0; }; } /* namespace libcamera */ -- cgit v1.2.1