1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-13 03:30:33 +00:00

Fix data race condition

This commit is contained in:
Carles Fernandez 2023-11-28 12:26:13 +01:00
parent 73100a7b64
commit 346cd8f9ac
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -491,6 +491,7 @@ int GNSSFlowgraph::connect_desktop_flowgraph()
} }
// Activate acquisition in enabled channels // Activate acquisition in enabled channels
std::lock_guard<std::mutex> lock(signal_list_mutex_);
for (int i = 0; i < channels_count_; i++) for (int i = 0; i < channels_count_; i++)
{ {
LOG(INFO) << "Channel " << i << " assigned to " << channels_.at(i)->get_signal(); LOG(INFO) << "Channel " << i << " assigned to " << channels_.at(i)->get_signal();