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:
Laurent Pinchart 2019-01-23 10:04:23 +02:00
parent d370c1b46e
commit 4d470eb37f
4 changed files with 46 additions and 1 deletions

View file

@ -26,6 +26,8 @@ public:
virtual void unregisterTimer(Timer *timer) = 0;
virtual void processEvents() = 0;
virtual void interrupt() = 0;
};
} /* namespace libcamera */