The thread pool written in C++ supports two modes of fixed thread number and adjustable thread number. Using std::future provides a mechanism for accessing the results of asynchronous operations.
用C++编写的线程池,支持固定线程数和可调节线程数两种模式,使用std::future提供了一种用于访问异步操作结果的机制。