From 1e3ba607ce30afcfc06b5e6e0e2da2921de603c5 Mon Sep 17 00:00:00 2001 From: faluco Date: Wed, 15 Sep 2021 13:45:06 +0200 Subject: [PATCH] Fix data race in is_pending_tx_end. --- srsue/hdr/phy/phy_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/hdr/phy/phy_common.h b/srsue/hdr/phy/phy_common.h index 88ce146a3..18cc46b7c 100644 --- a/srsue/hdr/phy/phy_common.h +++ b/srsue/hdr/phy/phy_common.h @@ -296,7 +296,7 @@ private: std::mutex mtch_mutex; std::condition_variable mtch_cvar; - bool is_pending_tx_end = false; + std::atomic is_pending_tx_end{false}; srsran::radio_interface_phy* radio_h = nullptr; srslog::basic_logger& logger;