diff --git a/srsue/src/phy/nr/worker_pool.cc b/srsue/src/phy/nr/worker_pool.cc index 9a5ea50e2..c529deba9 100644 --- a/srsue/src/phy/nr/worker_pool.cc +++ b/srsue/src/phy/nr/worker_pool.cc @@ -236,7 +236,10 @@ bool worker_pool::set_config(const srsran::phy_cfg_nr_t& new_cfg) w->release(); // As the worker has been configured, there is no need to load new configuration from the real-time thread - pending_cfgs[i] = false; + { + std::lock_guard lock(cfg_mutex); + pending_cfgs[i] = false; + } } }