#include <task_region.h>
Function for creating a task_region_handle, which automatically calls task_region_handle::wait() before returning. If a thread_group is not provided, one is created with an optimal number of threads. The callback f must have the signature void(task_region_handle&).
◆ operator()() [1/3]
template<typename F >
| void tools::task_region_::operator() |
( |
thread_group & |
threads, |
|
|
F && |
f |
|
) |
| const |
|
inline |
◆ operator()() [2/3]
template<typename F >
| void tools::task_region_::operator() |
( |
thread_group && |
threads, |
|
|
F && |
f |
|
) |
| const |
|
inline |
◆ operator()() [3/3]
template<typename F >
| void tools::task_region_::operator() |
( |
F && |
f | ) |
const |
|
inline |
The documentation for this struct was generated from the following file: