[libcamera-devel] [PATCH v4 12/12] android: camera_request: Add thread safety annotation
Hirokazu Honda
hiroh at chromium.org
Wed Dec 1 08:07:28 CET 2021
This applies clang thread safety annotation to
Camera3RequestDescriptor.
Signed-off-by: Hirokazu Honda <hiroh at chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/android/camera_request.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/android/camera_request.h b/src/android/camera_request.h
index 887dbe86..d9b04f16 100644
--- a/src/android/camera_request.h
+++ b/src/android/camera_request.h
@@ -57,7 +57,8 @@ public:
};
/* Keeps track of streams requiring post-processing. */
- std::map<CameraStream *, StreamBuffer *> pendingStreamsToProcess_;
+ std::map<CameraStream *, StreamBuffer *> pendingStreamsToProcess_
+ LIBCAMERA_TSA_GUARDED_BY(streamsProcessMutex_);
libcamera::Mutex streamsProcessMutex_;
Camera3RequestDescriptor(libcamera::Camera *camera,
--
2.34.0.rc2.393.gf8c9666880-goog
More information about the libcamera-devel
mailing list