From 346cd8f9ac52cae89082bca6f7385fb047b95268 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 28 Nov 2023 12:26:13 +0100 Subject: [PATCH] Fix data race condition --- src/core/receiver/gnss_flowgraph.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/receiver/gnss_flowgraph.cc b/src/core/receiver/gnss_flowgraph.cc index d5505b4f9..0770b305d 100644 --- a/src/core/receiver/gnss_flowgraph.cc +++ b/src/core/receiver/gnss_flowgraph.cc @@ -491,6 +491,7 @@ int GNSSFlowgraph::connect_desktop_flowgraph() } // Activate acquisition in enabled channels + std::lock_guard lock(signal_list_mutex_); for (int i = 0; i < channels_count_; i++) { LOG(INFO) << "Channel " << i << " assigned to " << channels_.at(i)->get_signal();