# ThreadPool **Repository Path**: bingchaoma/ThreadPool ## Basic Information - **Project Name**: ThreadPool - **Description**: ThreadPool( 线程池实现) ①主要语言:c++ ②来源:GitHub 目前star:7.5k ③项目地址:https://github.com/progschj/ThreadPool - **Primary Language**: Unknown - **License**: Zlib - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2024-12-02 - **Last Updated**: 2025-08-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ThreadPool ========== A simple C++11 Thread Pool implementation. Basic usage: ```c++ // 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; ```