summaryrefslogtreecommitdiff
path: root/src/android/camera_request.h
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-12-01 16:53:48 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-12-01 13:46:59 +0200
commitd2cca51965e1d2be41d3ca7276b89d37ee418895 (patch)
treecaa02f5c3197e22026736fe2071827c4b2d76798 /src/android/camera_request.h
parent221cf408f316eb2dc1cb96986053e2005fd36f39 (diff)
android: camera_request: Add thread safety annotation
This applies clang thread safety annotation to Camera3RequestDescriptor. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/android/camera_request.h')
-rw-r--r--src/android/camera_request.h3
1 files changed, 2 insertions, 1 deletions
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,