Definition at line 103 of file thread_pool.h.
◆ ExecutionContext()
| dht::ExecutionContext::ExecutionContext |
( |
ThreadPool & | pool | ) |
|
|
inline |
◆ ~ExecutionContext()
| dht::ExecutionContext::~ExecutionContext |
( |
| ) |
|
|
inline |
◆ run()
| void dht::ExecutionContext::run |
( |
std::function< void()> && | task | ) |
|
|
inline |
◆ stop()
| void dht::ExecutionContext::stop |
( |
| ) |
|
|
inline |
Wait for ongoing tasks to complete execution and drop other pending tasks
Definition at line 114 of file thread_pool.h.
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