yinchunxiang
Results
1
comments of
yinchunxiang
`````` // add new work item to the pool template auto ThreadPool::enqueue(F&& f, Args&&... args) -> std::future { using return_type = typename std::result_of::type; auto task = std::make_shared< std::packaged_task >( std::bind(std::forward(f),...