From 29102423dfb61c81c58700b395debcd434cbb111 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Wed, 5 Jan 2022 14:34:21 +0100 Subject: [PATCH] Fix TSAN concurrency issue in nr_phy_test --- test/phy/dummy_gnb_stack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/phy/dummy_gnb_stack.h b/test/phy/dummy_gnb_stack.h index 304f9a1f6..31f2f0958 100644 --- a/test/phy/dummy_gnb_stack.h +++ b/test/phy/dummy_gnb_stack.h @@ -89,7 +89,7 @@ private: srslog::basic_logger& sched_logger; bool autofill_sch_bsr = false; bool wait_preamble = false; - bool enable_user_sched = false; + std::atomic enable_user_sched = {false}; std::mutex metrics_mutex; metrics_t metrics = {};