remove incorrect move in execute_with_workers

This commit is contained in:
Tomasz Sobczyk
2020-10-19 13:27:39 +02:00
committed by nodchip
parent fd229c0768
commit 71862e2ebb

View File

@@ -191,7 +191,7 @@ void ThreadPool::execute_with_workers(std::function<void(Thread&)> worker)
{
for(Thread* th : *this)
{
th->execute_with_worker(std::move(worker));
th->execute_with_worker(worker);
}
}