Vadim Zeitlin 694dd35461 Fix MSVS 2013 warning about a condition being always true.
Use "for(;;)" for the infinite loop to avoid the warning at /W4 warning level.
2014-01-08 17:15:22 +01:00
2012-10-05 02:38:59 +02:00
2013-05-22 12:02:29 +02:00

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;

Description
A simple C++11 Thread Pool implementation
Readme 60 KiB
Languages
C++ 100%