[libcamera-devel] [PATCH 6/7] ipa: raspberrypi: contrast: Apply clang thread annotation
Hirokazu Honda
hiroh at chromium.org
Fri Dec 3 20:55:38 CET 2021
This annotates member variable of Contrast by clang thread
safety annotations.
Signed-off-by: Hirokazu Honda <hiroh at chromium.org>
---
src/ipa/raspberrypi/controller/rpi/contrast.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ipa/raspberrypi/controller/rpi/contrast.hpp b/src/ipa/raspberrypi/controller/rpi/contrast.hpp
index b74e06ab..7eb675ff 100644
--- a/src/ipa/raspberrypi/controller/rpi/contrast.hpp
+++ b/src/ipa/raspberrypi/controller/rpi/contrast.hpp
@@ -43,7 +43,7 @@ private:
ContrastConfig config_;
double brightness_;
double contrast_;
- ContrastStatus status_;
+ ContrastStatus status_ LIBCAMERA_TSA_GUARDED_BY(mutex_);
libcamera::Mutex mutex_;
};
--
2.34.1.400.ga245620fadb-goog
More information about the libcamera-devel
mailing list