ThreadPool Save

A simple C++11 Thread Pool implementation

Project README

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;

Open Source Agenda is not affiliated with "ThreadPool" Project. README Source: progschj/ThreadPool
Stars
7,477
Open Issues
50
Last Commit
1 month ago
Repository
Tags

Open Source Agenda Badge

Open Source Agenda Rating