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

pull/19955/head
Dean Lee 4 years ago committed by GitHub
parent c4215d8476
commit 0b75a85adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/boardd/panda.h

@ -52,7 +52,7 @@ class Panda {
Panda(); Panda();
~Panda(); ~Panda();
bool connected = true; std::atomic<bool> connected = true;
cereal::HealthData::HwType hw_type = cereal::HealthData::HwType::UNKNOWN; cereal::HealthData::HwType hw_type = cereal::HealthData::HwType::UNKNOWN;
bool is_pigeon = false; bool is_pigeon = false;
bool has_rtc = false; bool has_rtc = false;

Loading…
Cancel
Save