mtrebi / thread-pool

Thread pool implementation using c++11 threads
MIT License
1.15k stars 225 forks source link

Avoid additional copy optimization recommendations #42

Open DeHby opened 3 months ago

DeHby commented 3 months ago

auto task_ptr = std::make_shared<std::packaged_task<decltype(f(args...))()>>(std::move(func)); m_queue.enqueue(std::move(wrapper_func));