From 40499e6b6db7dd6c3066b9d308a0da4532a2109e Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 30 Aug 2021 15:00:18 +0200 Subject: [PATCH] ue_stack_lte: use std::atomic for running var --- srsue/hdr/stack/ue_stack_lte.h | 2 +- srsue/src/stack/ue_stack_lte.cc | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/srsue/hdr/stack/ue_stack_lte.h b/srsue/hdr/stack/ue_stack_lte.h index b3916b913..55938bc3c 100644 --- a/srsue/hdr/stack/ue_stack_lte.h +++ b/srsue/hdr/stack/ue_stack_lte.h @@ -180,7 +180,7 @@ private: const std::chrono::milliseconds TTI_WARN_THRESHOLD_MS{5}; const uint32_t SYNC_QUEUE_WARN_THRESHOLD = 5; - bool running; + std::atomic running{false}; srsue::stack_args_t args; srsran::tti_point current_tti; diff --git a/srsue/src/stack/ue_stack_lte.cc b/srsue/src/stack/ue_stack_lte.cc index 3d84ea6ab..e65144b96 100644 --- a/srsue/src/stack/ue_stack_lte.cc +++ b/srsue/src/stack/ue_stack_lte.cc @@ -25,7 +25,6 @@ using namespace srsran; namespace srsue { ue_stack_lte::ue_stack_lte() : - running(false), args(), stack_logger(srslog::fetch_basic_logger("STCK", false)), mac_logger(srslog::fetch_basic_logger("MAC")), @@ -40,8 +39,6 @@ ue_stack_lte::ue_stack_lte() : pdcp_nr_logger(srslog::fetch_basic_logger("PDCP-NR", false)), mac_pcap(), mac_nr_pcap(), - usim(nullptr), - phy(nullptr), rlc("RLC"), mac("MAC", &task_sched), rrc(this, &task_sched),