C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

Scoped guard of parallel region. More...

#include <tool_mutex.h>

Detailed Description

Scoped guard of parallel region.

The class guards a code region running in parallel. Works in scope. Should be used to protect parallel code. Example of use: if( Math::CheckMultithreadedMode( mtm_Items ) ) { ParallelRegionGuard l; std::thread t1( function1 ); std::thread t2( function2 ); t1.join(); t2.join(); }


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