My Project 2.4.4
C++ Distributed Hash Table
Loading...
Searching...
No Matches
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.

Constructor & Destructor Documentation

◆ ExecutionContext()

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

Definition at line 99 of file thread_pool.h.

◆ ~ExecutionContext()

dht::ExecutionContext::~ExecutionContext ( )
inline

Definition at line 103 of file thread_pool.h.

Member Function Documentation

◆ run()

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

Definition at line 112 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 108 of file thread_pool.h.


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