C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Scoped guard of parallel region. More...
#include <tool_mutex.h>
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(); }