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:
parent
73100a7b64
commit
346cd8f9ac
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user