signal_handler: use std::atomic for running var

This commit is contained in:
Andre Puschmann 2021-07-02 22:03:28 +02:00
parent ff5fe5df14
commit b5b2f8190e
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{