[libcamera-devel,4/7] ipa: raspberrypi: lux: Apply clang thread annotation
diff mbox series

Message ID 20211203195539.1574621-5-hiroh@chromium.org
State New
Headers show
Series
  • Apply clang thread safety annotations to raspberrypi
Related show

Commit Message

Hirokazu Honda Dec. 3, 2021, 7:55 p.m. UTC
This annotates member variable of Lux by clang thread safety
annotations.

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

Patch
diff mbox series

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_;
 };