This commit is contained in:
quqiOnfree 2025-03-09 10:14:13 +08:00
parent 27b560c67e
commit 7fc61b028e
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ class ThreadPool
{
public:
ThreadPool():
thread_num_(std::thread::hardware_concurrency() * 2),
thread_num_(std::thread::hardware_concurrency()),
is_running_(false) {}
~ThreadPool() noexcept

View File

@ -18,8 +18,8 @@
namespace fs = std::filesystem;
cxxpool::ThreadPool thread_pool;
cxxlog::Logger logger;
static cxxpool::ThreadPool thread_pool;
static cxxlog::Logger logger;
void processFileTask(fs::path filePath, fs::path outputFolder)
{