From a9472dea305a8cd256fd13be755e94ed690ac5df Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 27 Aug 2020 12:48:20 +0200 Subject: [PATCH] Remove redundant void (clang-tidy modernize-redundant-void-arg) --- .../signal_source/adapters/ad9361_fpga_signal_source.cc | 2 +- .../signal_source/adapters/ad9361_fpga_signal_source.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc b/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc index 70db31740..c3088861b 100644 --- a/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc +++ b/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.cc @@ -604,7 +604,7 @@ void Ad9361FpgaSignalSource::run_DMA_process(const std::string &FreqBand, const } -void Ad9361FpgaSignalSource::run_dynamic_bit_selection_process(void) +void Ad9361FpgaSignalSource::run_dynamic_bit_selection_process() { bool dynamic_bit_selection_active = true; diff --git a/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.h b/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.h index a5f12bafe..1788980df 100644 --- a/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.h +++ b/src/algorithms/signal_source/adapters/ad9361_fpga_signal_source.h @@ -74,7 +74,7 @@ private: const std::string &Filename1, const std::string &Filename2); - void run_dynamic_bit_selection_process(void); + void run_dynamic_bit_selection_process(); std::thread thread_file_to_dma; std::thread thread_dynamic_bit_selection; @@ -95,6 +95,9 @@ private: std::string filename_rx2; std::string freq_band; + std::mutex dma_mutex; + std::mutex dynamic_bit_selection_mutex; + double rf_gain_rx1_; double rf_gain_rx2_; uint64_t freq_; // frequency of local oscillator @@ -125,9 +128,6 @@ private: bool enable_DMA_; bool enable_dynamic_bit_selection_; bool rf_shutdown_; - - std::mutex dma_mutex; - std::mutex dynamic_bit_selection_mutex; }; #endif // GNSS_SDR_AD9361_FPGA_SIGNAL_SOURCE_H