![]() |
VR-Forces 4.3.1 Class Documentation
|
Scope guard used to mark a section of code which can be executed in parallel. More...

Public Member Functions | |
| ParallelScopeGuard (DtParallelTickManager *, bool read=false) | |
| ~ParallelScopeGuard () | |
| bool | release () |
| void | acquire (DtParallelTickManager *, bool read=false) |
Private Attributes | |
| DtParallelTickManager * | myParallelTickManager |
| bool | myReadFlag |
Scope guard used to mark a section of code which can be executed in parallel.
Only use the class if the mutex is already locked, i.e. the code you are executing is being called in serial (or you have already locked the mutex using SerialScopeGuard) or you will cause deadlock.
|
explicit |
| DtParallelTickManager::ParallelScopeGuard::~ParallelScopeGuard | ( | ) |
| bool DtParallelTickManager::ParallelScopeGuard::release | ( | ) |
| void DtParallelTickManager::ParallelScopeGuard::acquire | ( | DtParallelTickManager * | , |
| bool | read = false |
||
| ) |
|
private |
|
private |