Panda: use 'std::atomic<bool> connected' to ensure thread-safety (#19954)

old-commit-hash: 0b75a85adc
This commit is contained in:
Dean Lee
2021-01-29 03:35:13 +08:00
committed by GitHub
parent 24ffdd6183
commit 41368ada11
+1 -1
View File
@@ -52,7 +52,7 @@ class Panda {
Panda();
~Panda();
bool connected = true;
std::atomic<bool> connected = true;
cereal::HealthData::HwType hw_type = cereal::HealthData::HwType::UNKNOWN;
bool is_pigeon = false;
bool has_rtc = false;