rlc_um: add missing lock in get_buffer_state()

master
Andre Puschmann 5 years ago
parent 3c6ff0da30
commit 80afe5ca40

@ -274,6 +274,8 @@ bool rlc_um::rlc_um_tx_base::has_data()
uint32_t rlc_um::rlc_um_tx_base::get_buffer_state()
{
std::lock_guard<std::mutex> lock(mutex);
// Bytes needed for tx SDUs
uint32_t n_sdus = tx_sdu_queue.size();
uint32_t n_bytes = tx_sdu_queue.size_bytes();

Loading…
Cancel
Save