ue,nr: Protect pending_cfgs in PHY worker_pool

master
Ismael Gomez 3 years ago
parent b058945142
commit bdbaf7357a

@ -236,7 +236,10 @@ bool worker_pool::set_config(const srsran::phy_cfg_nr_t& new_cfg)
w->release(); w->release();
// As the worker has been configured, there is no need to load new configuration from the real-time thread // 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<std::mutex> lock(cfg_mutex);
pending_cfgs[i] = false;
}
} }
} }

Loading…
Cancel
Save