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

This commit is contained in:
Dean Lee
2021-01-23 07:26:27 +08:00
committed by GitHub
parent 2df9736bb2
commit 83003bdeac
+1 -1
View File
@@ -38,10 +38,10 @@
Panda * panda = NULL;
std::atomic<bool> safety_setter_thread_running(false);
std::atomic<bool> ignition(false);
bool spoofing_started = false;
bool fake_send = false;
bool connected_once = false;
bool ignition = false;
ExitHandler do_exit;
struct tm get_time(){