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
1 changed files with 1 additions and 0 deletions

View File

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