diff options
author | Milan Zamazal <mzamazal@redhat.com> | 2025-02-25 16:06:11 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2025-03-01 23:10:05 +0000 |
commit | 86ffaf936dc663afd48bd3e276134fa720210bd6 (patch) | |
tree | f1f2fc47261e8d8504b6abd620e060520b2826c5 /utils/codegen/ipc/mojo/public/tools/mojom | |
parent | 72a890e11ada58afbeada3de36751264ebd89280 (diff) |
libcamera: software_isp: Dispatch messages on stop
There may be pending messages in SoftwareIsp message queue when
SoftwareIsp stops. The call to IPAProxySoft::stop() will dispatch them
before SoftwareIsp::stop() finishes. But this is dependent on
IPAProxySoft::stop() implementation, let's break this dependency and
dispatch messages to SoftwareIsp explicitly in SoftwareIsp::stop().
This also allows dropping `running_' flag. Since the SoftwareIsp
messages get processed and invoke IPA calls before the IPA proxy is set
to ProxyStopping state and the SoftwareIsp worker thread is no longer
running, it's guaranteed that no new messages come to SoftwareIsp and
attempt to call the stopped IPA proxy.
Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'utils/codegen/ipc/mojo/public/tools/mojom')
0 files changed, 0 insertions, 0 deletions