|
|
| 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 () |
Definition at line 34 of file thread_pool.h.
◆ get()
template<class T>
| std::future< T > dht::ThreadPool::get |
( |
std::function< T()> && | cb | ) |
|
|
inline |
◆ getShared()
template<class T>
| std::shared_future< T > dht::ThreadPool::getShared |
( |
std::function< T()> && | cb | ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /home/noptrix/ba/blackarch/packages/opendht-c/src/opendht/include/opendht/thread_pool.h