mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-06-25 22:43:14 +00:00
Avoid usage of variable length arrays, which is a C99 feature
This commit is contained in:
parent
4eb8f2c14e
commit
668869ee85
|
@ -72,7 +72,7 @@ TEST(CpuMulticorrelatorRealCodesTest, MeasureExecutionTime)
|
||||||
std::chrono::duration<double> elapsed_seconds(0);
|
std::chrono::duration<double> elapsed_seconds(0);
|
||||||
int max_threads = FLAGS_cpu_multicorrelator_real_codes_max_threads_test;
|
int max_threads = FLAGS_cpu_multicorrelator_real_codes_max_threads_test;
|
||||||
std::vector<std::thread> thread_pool;
|
std::vector<std::thread> thread_pool;
|
||||||
Cpu_Multicorrelator_Real_Codes* correlator_pool[max_threads];
|
std::vector<Cpu_Multicorrelator_Real_Codes*> correlator_pool(max_threads);
|
||||||
unsigned int correlation_sizes[3] = {2048, 4096, 8192};
|
unsigned int correlation_sizes[3] = {2048, 4096, 8192};
|
||||||
double execution_times[3];
|
double execution_times[3];
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ TEST(CpuMulticorrelatorTest, MeasureExecutionTime)
|
||||||
std::chrono::duration<double> elapsed_seconds(0);
|
std::chrono::duration<double> elapsed_seconds(0);
|
||||||
int max_threads = FLAGS_cpu_multicorrelator_max_threads_test;
|
int max_threads = FLAGS_cpu_multicorrelator_max_threads_test;
|
||||||
std::vector<std::thread> thread_pool;
|
std::vector<std::thread> thread_pool;
|
||||||
Cpu_Multicorrelator* correlator_pool[max_threads];
|
std::vector<Cpu_Multicorrelator*> correlator_pool(max_threads);
|
||||||
unsigned int correlation_sizes[3] = {2048, 4096, 8192};
|
unsigned int correlation_sizes[3] = {2048, 4096, 8192};
|
||||||
double execution_times[3];
|
double execution_times[3];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user