libcamera/utils/codegen/ipc/generators/libcamera_templates
Barnabás Pőcze e1818265ae utils: ipc: Do not define variables in signal handler up front
Defining the variables at the beginning of the function forces the types
to be default constructible, which may not be desirable; furthermore, it
also forces the move/copy assignment operator to be used when the
deserialized value is retrieved.

Having `T val = f()` has the advantage of benefitting from potential RVO
as well as not requiring `T` to be default constructible, so generate
code in that form by calling `deserialize_call()` with `declare=true`.

Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2025-04-22 20:52:42 +02:00
..
core_ipa_interface.h.tmpl libcamera: ipa: Drop unneded includes from ipa_interface.h 2024-09-03 15:25:55 +03:00
core_ipa_serializer.h.tmpl meson: Move all code generation scripts to utils/codegen/ 2024-08-15 23:59:08 +03:00
definition_functions.tmpl meson: Move all code generation scripts to utils/codegen/ 2024-08-15 23:59:08 +03:00
meson.build meson: Move all code generation scripts to utils/codegen/ 2024-08-15 23:59:08 +03:00
module_ipa_interface.h.tmpl libcamera: ipa: Drop unneded includes from ipa_interface.h 2024-09-03 15:25:55 +03:00
module_ipa_proxy.cpp.tmpl utils: ipc: Do not define variables in signal handler up front 2025-04-22 20:52:42 +02:00
module_ipa_proxy.h.tmpl utils: ipc: Do not duplicate signals in proxy object 2025-04-21 16:33:40 +02:00
module_ipa_proxy_worker.cpp.tmpl meson: Move all code generation scripts to utils/codegen/ 2024-08-15 23:59:08 +03:00
module_ipa_serializer.h.tmpl meson: Move all code generation scripts to utils/codegen/ 2024-08-15 23:59:08 +03:00
proxy_functions.tmpl utils: ipc: Only dispatch messages for proxy when stopping thread 2025-03-01 23:10:05 +00:00
serializer.tmpl meson: Move all code generation scripts to utils/codegen/ 2024-08-15 23:59:08 +03:00