文件名称:A simple C++11 Thread Pool implementation
文件大小:3KB
文件格式:ZIP
更新时间:2019-10-31 05:11:13
源码,c++
ThreadPool A simple C++11 Thread Pool implementation. Basic usage: // create thread pool with 4 worker threads ThreadPool pool(4); // enqueue and store future auto result = pool.enqueue([](int answer) { return answer; }, 42); // get result from future std::cout << result.get() << std::endl;
【文件预览】:
ThreadPool-master
----ThreadPool.h(3KB)
----COPYING(881B)
----README.md(319B)
----example.cpp(633B)