From 0d61cb9addea6e31c84f6cfb5f53a581e8127a4e Mon Sep 17 00:00:00 2001 From: c00420053 Date: Fri, 25 Mar 2022 19:31:34 +0800 Subject: [PATCH] test smoke --- parser/common/thread_pool.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/parser/common/thread_pool.cc b/parser/common/thread_pool.cc index 7c90109..e0c1ce5 100644 --- a/parser/common/thread_pool.cc +++ b/parser/common/thread_pool.cc @@ -64,6 +64,7 @@ void ThreadPool::ThreadFunc(ThreadPool *const thread_pool) { if (thread_pool->is_stoped_ && thread_pool->tasks_.empty()) { return; } + task = std::move(thread_pool->tasks_.front()); thread_pool->tasks_.pop(); }