Skip to content

About

A simple C++11 Thread Pool implementation

Resources

Stars

124 stars

Watchers

6 watching

Forks

 
 

Latest commit

 

History

74 Commits

Folders and files

Repository files navigation

ThreadPool

A simple C++11 Thread Pool implementation.

Build and run the cross-platform regression suite with CMake and CTest; see the test documentation for commands and the CI compiler matrix.

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;

About

A simple C++11 Thread Pool implementation

Resources

Stars

124 stars

Watchers

6 watching

Forks

Releases

Packages

Contributors

Languages