mirror of https://github.com/PentHertz/srsLTE.git
Fix data race in phy_common::set_neighbour_cells.
This commit is contained in:
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…
Reference in New Issue