mirror of https://github.com/PentHertz/srsLTE.git
Fix data race in sync::current_earfcn.
This commit is contained in:
parent
92b81b200f
commit
b058945142
|
@ -944,6 +944,7 @@ void sync::get_current_cell(srsran_cell_t* cell_, uint32_t* earfcn_)
|
||||||
*cell_ = cell.get();
|
*cell_ = cell.get();
|
||||||
}
|
}
|
||||||
if (earfcn_) {
|
if (earfcn_) {
|
||||||
|
std::unique_lock<std::mutex> ul(rrc_mutex);
|
||||||
*earfcn_ = current_earfcn;
|
*earfcn_ = current_earfcn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue