README.md

    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;
    

    项目简介

    A simple C++11 Thread Pool implementation

    🚀 Github 镜像仓库 🚀

    源项目地址

    https://github.com/progschj/threadpool

    发行版本

    当前项目没有发行版本

    贡献者 3

    J Jakob Progsch @Jakob Progsch
    V Vaclav Zeman @Vaclav Zeman
    V Vadim Zeitlin @Vadim Zeitlin

    开发语言

    • C++ 100.0 %