From cc62f839863506e5147768b0e3224b7b4d84655d Mon Sep 17 00:00:00 2001 From: Binbin Zhang Date: Fri, 21 Jul 2023 14:44:37 +0800 Subject: [PATCH] [runtime/fix] fix style --- runtime/core/bin/decoder_main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/core/bin/decoder_main.cc b/runtime/core/bin/decoder_main.cc index b8f1dbae6..b05b5f558 100644 --- a/runtime/core/bin/decoder_main.cc +++ b/runtime/core/bin/decoder_main.cc @@ -42,7 +42,7 @@ std::mutex g_mutex; int g_total_waves_dur = 0; int g_total_decode_time = 0; -void decode(std::pair wav, bool warmup = false) { +void Decode(std::pair wav, bool warmup = false) { wenet::WavReader wav_reader(wav.second); int num_samples = wav_reader.num_samples(); CHECK_EQ(wav_reader.sample_rate(), FLAGS_sample_rate); @@ -164,7 +164,7 @@ int main(int argc, char* argv[]) { ThreadPool pool(FLAGS_thread_num); auto wav = waves[0]; for (int i = 0; i < FLAGS_warmup; i++) { - pool.enqueue(decode, wav, true); + pool.enqueue(Decode, wav, true); } } LOG(INFO) << "Warmup done."; @@ -173,7 +173,7 @@ int main(int argc, char* argv[]) { { ThreadPool pool(FLAGS_thread_num); for (auto& wav : waves) { - pool.enqueue(decode, wav, false); + pool.enqueue(Decode, wav, false); } }