VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
DtParallelTickManager::SerialScopeGuard Class Reference

Scope guard used to mark a section of code which must be executed in serial. More...

Inheritance diagram for DtParallelTickManager::SerialScopeGuard:
Inheritance graph
[legend]

Public Member Functions

 SerialScopeGuard (DtParallelTickManager *, bool write=true)
 ~SerialScopeGuard ()
bool upgradeToWriter ()
void downgradeToReader ()
void release ()
void acquire (DtParallelTickManager *, bool write=true)

Private Attributes

DtParallelTickManagermyParallelTickManager
bool myWriteFlag

Detailed Description

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.

Constructor & Destructor Documentation

DtParallelTickManager::SerialScopeGuard::SerialScopeGuard ( DtParallelTickManager ,
bool  write = true 
)
explicit
DtParallelTickManager::SerialScopeGuard::~SerialScopeGuard ( )

Member Function Documentation

bool DtParallelTickManager::SerialScopeGuard::upgradeToWriter ( )
void DtParallelTickManager::SerialScopeGuard::downgradeToReader ( )
void DtParallelTickManager::SerialScopeGuard::release ( )
void DtParallelTickManager::SerialScopeGuard::acquire ( DtParallelTickManager ,
bool  write = true 
)

Member Data Documentation

DtParallelTickManager* DtParallelTickManager::SerialScopeGuard::myParallelTickManager
private
bool DtParallelTickManager::SerialScopeGuard::myWriteFlag
private

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)