|
The Vish Visualization Shell 0.3
Vish
|
A pool of threads, to be used in conjunction with async(). More...
#include <elementary/memcore/async.hpp>
Public Member Functions | |
| ThreadPool (const std::string &ThreadPoolName, unsigned ThreadFactor=2) | |
| Construct with a set of threads relative to the number of nodes available on the current hardware. | |
| ThreadPool (size_t threads, const std::string &ThreadPoolName) | |
| Construct with a given number of threads. | |
| MemCore::ThreadPool::ThreadPool | ( | const std::string & | ThreadPoolName, |
| unsigned | ThreadFactor = 2 |
||
| ) |
Construct with a set of threads relative to the number of nodes available on the current hardware.
| ThreadFactor | Factor by how many more threads than nodes shall be used. Effective number of threads will be 1+ThreadFactor*std::thread::hardware_concurrency()
|