diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-03-23 13:55:09 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-03-29 12:18:02 +0100 |
commit | 70238ceca5b2f0be1330ecb9664ae0f59f151152 (patch) | |
tree | d4fb849274346c59b92f3faf2caf19be7a1eeac1 /utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl | |
parent | e7d367bf65c749ca1cee79db6d12a1fc130ff80e (diff) |
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>
Diffstat (limited to 'utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl')
-rw-r--r-- | utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl b/utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl index efb09a18..017b870c 100644 --- a/utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl +++ b/utils/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl @@ -104,7 +104,6 @@ private: {{interface_name}} *ipa_; }; - bool running_; Thread thread_; ThreadProxy proxy_; std::unique_ptr<{{interface_name}}> ipa_; |