diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-01-19 19:31:58 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-01-25 02:39:21 +0200 |
commit | 56f817892cb444f3c0931357373cbb5961af4b9b (patch) | |
tree | 2e4d677b19bbc8e2e5e5b46f2053ec379ec5067d /include/linux/media-bus-format.h | |
parent | fdcea5ad7996f65848006e4df8ab75e20dbc0461 (diff) |
libcamera: object: Document and ensure Object deletion constraints
Object instances are meant to be deleted from the thread they are bound
to, and this requirement is documented. There are however exceptions to
the rule, as threads may be stopped and restarted, with objects bound to
them not being deleted and recreated for every stop/restart cycle. Bound
objects may therefore need to be deleted after the thread has stopped,
making it impossible to use Object::deleteLater().
Document the lifetime requirements more precisely, and enforce them with
an assertion.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Diffstat (limited to 'include/linux/media-bus-format.h')
0 files changed, 0 insertions, 0 deletions