Electroneum
Public Member Functions | List of all members
tools::task_region_ Struct Reference

#include <task_region.h>

Public Member Functions

template<typename F >
void operator() (thread_group &threads, F &&f) const
 
template<typename F >
void operator() (thread_group &&threads, F &&f) const
 
template<typename F >
void operator() (F &&f) const
 

Detailed Description

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&).

Member Function Documentation

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