From 7dae4a491e072fb08f1bc2bb5cc696fee346d769 Mon Sep 17 00:00:00 2001 From: faluco Date: Wed, 15 Sep 2021 13:19:30 +0200 Subject: [PATCH] Fix data race in ue_stack_lte::ul_dropped_sdus. --- srsue/hdr/stack/ue_stack_lte.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/hdr/stack/ue_stack_lte.h b/srsue/hdr/stack/ue_stack_lte.h index 62aefd034..d7698a40d 100644 --- a/srsue/hdr/stack/ue_stack_lte.h +++ b/srsue/hdr/stack/ue_stack_lte.h @@ -234,7 +234,7 @@ private: ue_bearer_manager bearers; // helper to manage mapping between EPS and radio bearers // Metrics helper - uint32_t ul_dropped_sdus = 0; + std::atomic ul_dropped_sdus{0}; }; } // namespace srsue