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

Message ID 20211203195539.1574621-7-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 Contrast by clang thread
safety annotations.

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

Patch
diff mbox series

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