summaryrefslogtreecommitdiff
path: root/utils/rkisp1
diff options
context:
space:
mode:
authorBarnabás Pőcze <barnabas.pocze@ideasonboard.com>2025-03-26 09:37:08 +0100
committerBarnabás Pőcze <barnabas.pocze@ideasonboard.com>2025-04-22 20:52:42 +0200
commite1818265aeae36d17a3f7e4fca5c115cffd3bf80 (patch)
tree4c7d062571955840554ea6c591f0360a3fa6dbed /utils/rkisp1
parentf31da7272eb0d8dfcd551057b24b5ca4f6985713 (diff)
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>
Diffstat (limited to 'utils/rkisp1')
0 files changed, 0 insertions, 0 deletions
0 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101