#include <ExecutorAccessor.hpp>
◆ ExecutorAccessor() [1/3]
ExecutorAccessor::ExecutorAccessor |
( |
| ) |
|
◆ ~ExecutorAccessor()
ExecutorAccessor::~ExecutorAccessor |
( |
| ) |
|
◆ ExecutorAccessor() [2/3]
◆ ExecutorAccessor() [3/3]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ submit()
template<typename F >
uint64_t ExecutorAccessor::submit |
( |
F && |
f | ) |
|
|
inline |
Submit a task to the threadpool, the task will be executed asynchronously.
- Template Parameters
-
F | return type of the function |
- Parameters
-
- Returns
- id of the task, you can use this id to wait for the task to finish
◆ waitForAll()
void ExecutorAccessor::waitForAll |
( |
| ) |
|
wait for all tasks to finish
◆ waitForFinishedTasks()
void ExecutorAccessor::waitForFinishedTasks |
( |
| ) |
|
wait for all finished task
◆ waitForTask()
void ExecutorAccessor::waitForTask |
( |
uint64_t |
id | ) |
|
wait for a specific task to finish
- Parameters
-
id | id of the task to wait for |
◆ waitForTasks()
void ExecutorAccessor::waitForTasks |
( |
const std::vector< uint64_t > & |
ids | ) |
|
wait for a list of tasks to finish
- Parameters
-
ids | std::vector of ids of the tasks to wait for |
The documentation for this class was generated from the following files: