An open API service indexing awesome lists of open source software.

https://github.com/progschj/ThreadPool

A simple C++11 Thread Pool implementation
https://github.com/progschj/ThreadPool

Last synced: about 1 month ago
JSON representation

A simple C++11 Thread Pool implementation

Awesome Lists containing this project

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;

```