Fix data race in phy_common::set_neighbour_cells.

master
faluco 3 years ago committed by Andre Puschmann
parent 72088dadb5
commit 666cb73cc9

@ -264,6 +264,7 @@ public:
total_rsrp += srsran_convert_dB_to_power(m.rsrp);
}
if (std::isnormal(total_rsrp)) {
std::unique_lock<std::mutex> lock(meas_mutex);
if (std::isnormal(avg_rsrp_neigh[cc_idx])) {
avg_rsrp_neigh[cc_idx] = SRSRAN_VEC_EMA(total_rsrp, avg_rsrp_neigh[cc_idx], 0.9);
} else {

Loading…
Cancel
Save