From b5b2f8190ec1f4da1f6ca8e80bef3dedb3735511 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 2 Jul 2021 22:03:28 +0200 Subject: [PATCH] signal_handler: use std::atomic for running var --- lib/include/srsran/common/signal_handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/include/srsran/common/signal_handler.h b/lib/include/srsran/common/signal_handler.h index ca700af74..41797d65d 100644 --- a/lib/include/srsran/common/signal_handler.h +++ b/lib/include/srsran/common/signal_handler.h @@ -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 running = {true}; static void srsran_signal_handler(int signal) {