C++ Distributed Hash Table
Classes | Public Member Functions | List of all members
dht::ExecutionContext Class Reference

Public Member Functions

 ExecutionContext (ThreadPool &pool)
 
void stop ()
 
void run (std::function< void()> &&task)
 

Detailed Description

Definition at line 97 of file thread_pool.h.

Member Function Documentation

◆ stop()

void dht::ExecutionContext::stop ( )
inline

Wait for ongoing tasks to complete execution and drop other pending tasks

Definition at line 108 of file thread_pool.h.


The documentation for this class was generated from the following file: