From b862bbc2e68641a5c5a87a8dd31ff8ed18362af4 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 7 Jun 2021 11:55:10 +0200 Subject: [PATCH] rlc_am_lte: add missing mutex to get_status getter fixws race detected with TSAN --- lib/src/upper/rlc_am_lte.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/upper/rlc_am_lte.cc b/lib/src/upper/rlc_am_lte.cc index 6d17307d5..25f10284d 100644 --- a/lib/src/upper/rlc_am_lte.cc +++ b/lib/src/upper/rlc_am_lte.cc @@ -1829,6 +1829,7 @@ void rlc_am_lte::rlc_am_lte_rx::reset_status() bool rlc_am_lte::rlc_am_lte_rx::get_do_status() { + std::lock_guard lock(mutex); return do_status; }