[libcamera-devel] [PATCH 4/7] ipa: raspberrypi: lux: Apply clang thread annotation

Hirokazu Honda hiroh at chromium.org
Fri Dec 3 20:55:36 CET 2021


This annotates member variable of Lux by clang thread safety
annotations.

Signed-off-by: Hirokazu Honda <hiroh at chromium.org>
---
 src/ipa/raspberrypi/controller/rpi/lux.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ipa/raspberrypi/controller/rpi/lux.hpp b/src/ipa/raspberrypi/controller/rpi/lux.hpp
index caa018da..04b82c4d 100644
--- a/src/ipa/raspberrypi/controller/rpi/lux.hpp
+++ b/src/ipa/raspberrypi/controller/rpi/lux.hpp
@@ -35,7 +35,7 @@ private:
 	double reference_Y_; // out of 65536
 	double reference_lux_;
 	double current_aperture_;
-	LuxStatus status_;
+	LuxStatus status_ LIBCAMERA_TSA_GUARDED_BY(mutex_);
 	libcamera::Mutex mutex_;
 };
 
-- 
2.34.1.400.ga245620fadb-goog



More information about the libcamera-devel mailing list