Public Member Functions | |
| ThreadPool (int n_workers) | |
| ThreadPool (const ThreadPool &)=delete | |
| ThreadPool & | operator= (const ThreadPool &)=delete |
| int | workers () const |
| void | run (std::size_t n, std::function< void(std::size_t, std::size_t)> fn, int max_workers=0) |
Static Public Member Functions | |
| static ThreadPool & | global () |
Definition at line 28 of file thread_pool.hpp.
|
inline |
Definition at line 40 of file thread_pool.hpp.