A simple C++11 Thread Pool implementation
Switch branches/tags
Nothing to show
Clone or download
Latest commit 9a42ec1 Sep 26, 2014
Failed to load latest commit information.
COPYING added attribution Sep 26, 2014
README.md basic usage in readme May 22, 2013
ThreadPool.h changed typedef to using Sep 26, 2014
example.cpp Use emplace_back() and for(a:b) loop. Sep 25, 2014



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;