ezEngine  Milestone 7
ezConditionalLock< T > Class Template Reference

Manages a lock (e.g. a mutex) and ensures that it is properly released as the lock object goes out of scope. The lock/unlock will only be done if the boolean condition is satisfied at scope creation time. More...

#include <ConditionalLock.h>

Public Member Functions

EZ_FORCE_INLINE ezConditionalLock (T &lock, bool bCondition)
 

Private Member Functions

 ezConditionalLock (const ezConditionalLock< T > &rhs)
 
void operator= (const ezConditionalLock< T > &rhs)
 

Private Attributes

T & m_lock
 
bool m_bCondition
 

Detailed Description

template<typename T>
class ezConditionalLock< T >

Manages a lock (e.g. a mutex) and ensures that it is properly released as the lock object goes out of scope. The lock/unlock will only be done if the boolean condition is satisfied at scope creation time.


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