From ae62907e81b63b2227da8b7d04d347831da0b169 Mon Sep 17 00:00:00 2001 From: m0dB Date: Sun, 10 Nov 2024 13:08:37 +0100 Subject: [PATCH] use atomic to fix tsan detected data race condition --- src/control/controlindicator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control/controlindicator.h b/src/control/controlindicator.h index ec16857b438..8557805af50 100644 --- a/src/control/controlindicator.h +++ b/src/control/controlindicator.h @@ -35,7 +35,7 @@ class ControlIndicator : public ControlObject { }; private: - enum BlinkValue m_blinkValue; + std::atomic m_blinkValue; parented_ptr m_pCOIndicator250millis; parented_ptr m_pCOIndicator500millis; };