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

old-commit-hash: 83003bdeac6ff082124b3e5a2f1fdda2644cb228
This commit is contained in:
Dean Lee
2021-01-23 07:26:27 +08:00
committed by GitHub
parent daf160a27c
commit c1e97c00bb
+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(){