summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-23 10:04:23 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-23 18:51:56 +0200
commit4d470eb37fe31cc9899ee36e81134b35b02a36f3 (patch)
tree552ed084bb00b42df90a7590db25e5bb8a2d4df8 /include
parentd370c1b46e1733905fd76eec004be26475afae9d (diff)
libcamera: event_dispatcher: Add interrupt() function
The new interrupt() function allows interrupting in-progress blocking processEvents() calls. This is useful to stop running event loops. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/event_dispatcher.h2
1 files changed, 2 insertions, 0 deletions
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 */