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

#include <MRMesh/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


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