Skip to content

Commit

Permalink
Merge pull request #13875 from m0dB/tsan-fix-controlindicator
Browse files Browse the repository at this point in the history
use atomic to fix tsan detected data race condition of blink value in control indicator
  • Loading branch information
daschuer authored Nov 10, 2024
2 parents 76f6194 + ae62907 commit 9112605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control/controlindicator.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ControlIndicator : public ControlObject {
};

private:
enum BlinkValue m_blinkValue;
std::atomic<BlinkValue> m_blinkValue;
parented_ptr<ControlProxy> m_pCOIndicator250millis;
parented_ptr<ControlProxy> m_pCOIndicator500millis;
};

0 comments on commit 9112605

Please sign in to comment.