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

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