From b034a9c9839889a48d9877f4454a3a24fd90f92c Mon Sep 17 00:00:00 2001 From: Fabian Eckermann Date: Tue, 12 Oct 2021 10:58:11 +0200 Subject: [PATCH] Lock mutex when setting common cfg. --- srsenb/src/phy/nr/slot_worker.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srsenb/src/phy/nr/slot_worker.cc b/srsenb/src/phy/nr/slot_worker.cc index fed1aa6e5..2ff2880c1 100644 --- a/srsenb/src/phy/nr/slot_worker.cc +++ b/srsenb/src/phy/nr/slot_worker.cc @@ -401,10 +401,12 @@ void slot_worker::work_imp() common.worker_end(context, true, tx_rf_buffer); } + bool slot_worker::set_common_cfg(const srsran_carrier_nr_t& carrier, const srsran_pdcch_cfg_nr_t& pdcch_cfg_, const srsran_ssb_cfg_t& ssb_cfg_) { + std::lock_guard lock(mutex); // Set gNb DL carrier if (srsran_gnb_dl_set_carrier(&gnb_dl, &carrier) < SRSRAN_SUCCESS) { logger.error("Error setting DL carrier");