mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 10:25:05 +03:00
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>
This commit is contained in:
parent
d370c1b46e
commit
4d470eb37f
4 changed files with 46 additions and 1 deletions
|
@ -26,6 +26,8 @@ public:
|
|||
virtual void unregisterTimer(Timer *timer) = 0;
|
||||
|
||||
virtual void processEvents() = 0;
|
||||
|
||||
virtual void interrupt() = 0;
|
||||
};
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue