diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-01-04 04:18:05 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-01-07 22:29:31 +0200 |
commit | b0135a1522ed4217a8deb7929fdb36276e58161b (patch) | |
tree | 2a435222aefe9f9440818626b0add617666270e9 /include/android/system | |
parent | 621edb2367e81860f6b6e89243ad7cbe3e0b6b7f (diff) |
libcamera: bound_method: Manage BoundMethodPack through std::shared_ptr
The bound method arguments pack will need to be accessed by the method
invoker in order to retrieve the method return value when using a
blocking connection type. We thus can't delete the pack unconditionally
in the bound method target thread. We also can't delete it
unconditionally in the invoker's thread, as for queued connections the
pack will be used in the target thread after the invoker completes.
This shows that ownership of the arguments pack is shared between two
contexts. As a result, manage it using std::shared_ptr<>.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include/android/system')
0 files changed, 0 insertions, 0 deletions