|
|
| ThreadPool (size_t maxThreads) |
| |
|
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 () |
| |
|
void | join () |
| |
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/abuild/rpmbuild/BUILD/opendht-2.4.4/include/opendht/thread_pool.h