My Project: dht::ExecutionContext Class Reference

My Project 3.7.7 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 92 of file thread_pool.h.

## Constructor & Destructor Documentation

## ◆ ExecutionContext()

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

Definition at line 95 of file thread_pool.h.

## ◆ ~ExecutionContext()

dht::ExecutionContext::~ExecutionContext | ( |  | ) |
| inline

Definition at line 100 of file thread_pool.h.

## Member Function Documentation

## ◆ run()

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

Definition at line 105 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 103 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