boardd: use std::atomic for ignition to ensure thread-safety (#19882)

old-commit-hash: 83003bdeac
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent daf160a27c
commit c1e97c00bb
  1. 2
      selfdrive/boardd/boardd.cc

@ -38,10 +38,10 @@
Panda * panda = NULL; Panda * panda = NULL;
std::atomic<bool> safety_setter_thread_running(false); std::atomic<bool> safety_setter_thread_running(false);
std::atomic<bool> ignition(false);
bool spoofing_started = false; bool spoofing_started = false;
bool fake_send = false; bool fake_send = false;
bool connected_once = false; bool connected_once = false;
bool ignition = false;
ExitHandler do_exit; ExitHandler do_exit;
struct tm get_time(){ struct tm get_time(){

Loading…
Cancel
Save