임시저장

This commit is contained in:
2025-04-30 07:29:07 +09:00
parent 1703974310
commit 89633f94a2
5 changed files with 55 additions and 29 deletions

View File

@@ -32,13 +32,12 @@ void* ThreadPool::Worker() {
if (this->jobs_.empty())
return nullptr;
auto jobPair = std::move(jobs_.front());
auto job = std::move(jobs_.front());
jobs_.pop();
lock.unlock();
spdlog::info("ThreadPool Worker : {} Executing a job", pid);
auto job = jobPair.first();
jobPair.second() = (*job)();
job();
}
return nullptr;