ue_stack_lte: use std::atomic for running var

master
Andre Puschmann 3 years ago
parent 79cdc28015
commit 40499e6b6d

@ -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<bool> running{false};
srsue::stack_args_t args;
srsran::tti_point current_tti;

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

Loading…
Cancel
Save