mirror of https://github.com/PentHertz/srsLTE.git
signal_handler: use std::atomic for running var
This commit is contained in:
parent
ff5fe5df14
commit
b5b2f8190e
|
@ -31,7 +31,7 @@ extern "C" {
|
|||
|
||||
// static vars required by signal handling
|
||||
static srslog::sink* log_sink = nullptr;
|
||||
static bool running = true;
|
||||
static std::atomic<bool> running = {true};
|
||||
|
||||
static void srsran_signal_handler(int signal)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue