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

This commit is contained in:
Dean Lee
2021-01-29 03:35:13 +08:00
committed by GitHub
parent c4215d8476
commit 0b75a85adc
+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;