My Project 3.2.0
C++ Distributed Hash Table
Loading...
Searching...
No Matches
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 103 of file thread_pool.h.

Constructor & Destructor Documentation

◆ ExecutionContext()

dht::ExecutionContext::ExecutionContext ( ThreadPool & pool)
inline

Definition at line 105 of file thread_pool.h.

◆ ~ExecutionContext()

dht::ExecutionContext::~ExecutionContext ( )
inline

Definition at line 109 of file thread_pool.h.

Member Function Documentation

◆ run()

void dht::ExecutionContext::run ( std::function< void()> && task)
inline

Definition at line 118 of file thread_pool.h.

◆ 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: