mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 17:05:08 +03:00
libcamera: camera: Assert pipelines complete all requests
When the camera manager calls stop on a pipeline, it is expected that the pipeline handler guarantees all requests are returned back to the application before the camera has stopped. Ensure that this guarantee is met by providing an accessor on the pipeline handler to validate that all pending requests are removed. Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
7e0da7c349
commit
ec5d4acfca
3 changed files with 18 additions and 0 deletions
|
@ -80,6 +80,7 @@ public:
|
|||
|
||||
virtual int start(Camera *camera, const ControlList *controls) = 0;
|
||||
virtual void stop(Camera *camera) = 0;
|
||||
bool hasPendingRequests(const Camera *camera) const;
|
||||
|
||||
void queueRequest(Request *request);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue