일단 충돌 구현...?
This commit is contained in:
@@ -51,8 +51,8 @@ class ThreadPool {
|
||||
}
|
||||
|
||||
std::lock_guard<std::mutex> lock(jobQueueMutex);
|
||||
auto boundFunc = [this, __job, ... __args = std::move(__args)]() mutable {
|
||||
__job(this, std::move(__args)...);
|
||||
auto boundFunc = [this, __job, ... __args = __args]() mutable {
|
||||
__job(this, __args...);
|
||||
};
|
||||
auto task = std::packaged_task<void()>(std::move(boundFunc));
|
||||
jobs_.push(std::move(task));
|
||||
|
||||
Reference in New Issue
Block a user