MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::TbbTaskArenaAndGroup Struct Reference

#include <MRTbbTaskArenaAndGroup.h>

Public Member Functions

template<typename F >
void execute (F &&f)
 runs given function within this task group and task arena
 
void wait ()
 

Public Attributes

tbb::task_arena arena
 
tbb::task_group group
 

Detailed Description

allows several threads to work on a group of tasks in isolation (in one arena): they cannot steal outside tasks until the all these tasks are finished; this solves the issue of recursive calling of the function where TbbTaskArenaAndGroup was created

Member Function Documentation

◆ execute()

template<typename F >
void MR::TbbTaskArenaAndGroup::execute ( F && f)
inline

runs given function within this task group and task arena

◆ wait()

void MR::TbbTaskArenaAndGroup::wait ( )
inline

waits till all tasks are done, joining to their execution; wait() must be called before this class destruction

Member Data Documentation

◆ arena

tbb::task_arena MR::TbbTaskArenaAndGroup::arena

◆ group

tbb::task_group MR::TbbTaskArenaAndGroup::group

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