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

old-commit-hash: 0b75a85adc
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent 24ffdd6183
commit 41368ada11
  1. 2
      selfdrive/boardd/panda.h

@ -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;

Loading…
Cancel
Save