1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-31 03:14:56 +00:00

Fix occasional segfault when exiting with enter+q if Acquisition_XX.blocking=false

This commit is contained in:
Carles Fernandez 2020-12-22 00:40:36 +01:00
parent 78d90a0bc4
commit 3bcac95964
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -659,7 +659,10 @@ void pcps_acquisition::acquisition_core(uint64_t samp_count)
<< ", doppler_step: " << d_doppler_step
<< ", use_CFAR_algorithm_flag: " << (d_use_CFAR_algorithm_flag ? "true" : "false");
lk.unlock();
if (d_acq_parameters.blocking)
{
lk.unlock();
}
// Doppler frequency grid loop
if (!d_step_two)
@ -782,7 +785,11 @@ void pcps_acquisition::acquisition_core(uint64_t samp_count)
}
}
lk.lock();
if (d_acq_parameters.blocking)
{
lk.lock();
}
if (!d_acq_parameters.bit_transition_flag)
{
if (d_test_statistics > d_threshold)