|
My Project 3.7.9
C++ Distributed Hash Table
|
Public Member Functions | |
| ThreadPool (unsigned minThreads, unsigned maxThreads=0) | |
| void | run (std::function< void()> &&cb) |
| template<class T> | |
| std::future< T > | get (std::function< T()> &&cb) |
| template<class T> | |
| std::shared_future< T > | getShared (std::function< T()> &&cb) |
| void | stop (bool wait=true) |
| void | join () |
| void | detach () |
Static Public Member Functions | |
| static ThreadPool & | computation () |
| static ThreadPool & | io () |
Definition at line 17 of file thread_pool.h.
|
inline |
Definition at line 30 of file thread_pool.h.
|
inline |
Definition at line 46 of file thread_pool.h.