libcamera/utils/ipc/generators/libcamera_templates
Kieran Bingham 70238ceca5 utils: ipc: proxy: Track IPA with a state machine
Asynchronous tasks can only be submitted while the IPA is running.

Further more, the shutdown sequence can not be tracked with a simple
running flag. We can also be in the state 'Stopping' where we have not
yet completed all events, but we must not commence anything new.

Refactor the running_ boolean into a stateful enum to track this.

Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2021-03-29 12:18:02 +01:00
..
core_ipa_interface.h.tmpl utils: ipc: add templates for code generation for IPC mechanism 2021-02-16 19:21:00 +09:00
core_ipa_serializer.h.tmpl utils: ipc: add templates for code generation for IPC mechanism 2021-02-16 19:21:00 +09:00
definition_functions.tmpl utils: ipc: add templates for code generation for IPC mechanism 2021-02-16 19:21:00 +09:00
meson.build utils: ipc: add templates for code generation for IPC mechanism 2021-02-16 19:21:00 +09:00
module_ipa_interface.h.tmpl utils: ipc: add templates for code generation for IPC mechanism 2021-02-16 19:21:00 +09:00
module_ipa_proxy.cpp.tmpl utils: ipc: proxy: Track IPA with a state machine 2021-03-29 12:18:02 +01:00
module_ipa_proxy.h.tmpl utils: ipc: proxy: Track IPA with a state machine 2021-03-29 12:18:02 +01:00
module_ipa_proxy_worker.cpp.tmpl utils: ipc: Make first output parameter direct return if int32 2021-03-09 11:49:13 +09:00
module_ipa_serializer.h.tmpl utils: ipc: add templates for code generation for IPC mechanism 2021-02-16 19:21:00 +09:00
proxy_functions.tmpl utils: ipc: proxy: Track IPA with a state machine 2021-03-29 12:18:02 +01:00
serializer.tmpl utils: ipc: add templates for code generation for IPC mechanism 2021-02-16 19:21:00 +09:00