From b2e04818491d373b2036eb256d6c3c921f50313b Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 19 Apr 2022 12:28:58 +0200 Subject: [PATCH] ue,mac,nr: fix another race in MAC --- srsue/hdr/stack/mac_nr/mac_nr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/hdr/stack/mac_nr/mac_nr.h b/srsue/hdr/stack/mac_nr/mac_nr.h index 65c65035b..637d5ea41 100644 --- a/srsue/hdr/stack/mac_nr/mac_nr.h +++ b/srsue/hdr/stack/mac_nr/mac_nr.h @@ -154,7 +154,7 @@ private: std::atomic started = {false}; // Boolean to determine if need to decode SI-RNTI - bool search_bcch = false; + std::atomic search_bcch = {false}; ue_rnti rntis; // thread-safe helper to store RNTIs, contention ID, etc bool contention_res_successful;