mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	Fix occasional segfault when exiting with enter+q if Acquisition_XX.blocking=false
This commit is contained in:
		| @@ -659,7 +659,10 @@ void pcps_acquisition::acquisition_core(uint64_t samp_count) | |||||||
|                << ", doppler_step: " << d_doppler_step |                << ", doppler_step: " << d_doppler_step | ||||||
|                << ", use_CFAR_algorithm_flag: " << (d_use_CFAR_algorithm_flag ? "true" : "false"); |                << ", use_CFAR_algorithm_flag: " << (d_use_CFAR_algorithm_flag ? "true" : "false"); | ||||||
|  |  | ||||||
|     lk.unlock(); |     if (d_acq_parameters.blocking) | ||||||
|  |         { | ||||||
|  |             lk.unlock(); | ||||||
|  |         } | ||||||
|  |  | ||||||
|     // Doppler frequency grid loop |     // Doppler frequency grid loop | ||||||
|     if (!d_step_two) |     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_acq_parameters.bit_transition_flag) | ||||||
|         { |         { | ||||||
|             if (d_test_statistics > d_threshold) |             if (d_test_statistics > d_threshold) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez