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::ParallelScopeGuard Class Reference

Scope guard used to mark a section of code which can be executed in parallel. More...

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

Public Member Functions

 ParallelScopeGuard (DtParallelTickManager *, bool read=false)
 ~ParallelScopeGuard ()
bool release ()
void acquire (DtParallelTickManager *, bool read=false)

Private Attributes

DtParallelTickManagermyParallelTickManager
bool myReadFlag

Detailed Description

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.

Constructor & Destructor Documentation

DtParallelTickManager::ParallelScopeGuard::ParallelScopeGuard ( DtParallelTickManager ,
bool  read = false 
)
explicit
DtParallelTickManager::ParallelScopeGuard::~ParallelScopeGuard ( )

Member Function Documentation

bool DtParallelTickManager::ParallelScopeGuard::release ( )
void DtParallelTickManager::ParallelScopeGuard::acquire ( DtParallelTickManager ,
bool  read = false 
)

Member Data Documentation

DtParallelTickManager* DtParallelTickManager::ParallelScopeGuard::myParallelTickManager
private
bool DtParallelTickManager::ParallelScopeGuard::myReadFlag
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)