The Pedigree Project 0.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LockGuard< T > Class Template Reference
+ Collaboration diagram for LockGuard< T >:

Public Member Functions

 LockGuard (T &Lock, bool Condition=true)
 
void disown ()
 
bool ownsLock () const
 

Private Member Functions

 NOT_COPYABLE_OR_ASSIGNABLE (LockGuard)
 

Private Attributes

T & m_Lock
 
bool m_bCondition
 

Detailed Description

template<class T>
class LockGuard< T >

Definition at line 57 of file LockGuard.h.

Constructor & Destructor Documentation

◆ LockGuard()

template<class T >
LockGuard< T >::LockGuard ( T &  Lock,
bool  Condition = true 
)
inline

Definition at line 59 of file LockGuard.h.

◆ ~LockGuard()

template<class T >
LockGuard< T >::~LockGuard ( )
inline

Definition at line 63 of file LockGuard.h.

Member Function Documentation

◆ disown()

template<class T >
void LockGuard< T >::disown ( )
inline

Stops managing the lock without releasing it.

Definition at line 69 of file LockGuard.h.

Referenced by MemoryPool::allocateDoer(), Buffer< T, allowShortOperation >::canRead(), Buffer< T, allowShortOperation >::canWrite(), HostedVirtualAddressSpace::clone(), and File::readIntoCache().

+ Here is the caller graph for this function:

◆ ownsLock()

template<class T >
bool LockGuard< T >::ownsLock ( ) const
inline

Definition at line 73 of file LockGuard.h.

Member Data Documentation

◆ m_bCondition

template<class T >
bool LockGuard< T >::m_bCondition
private

Definition at line 82 of file LockGuard.h.

◆ m_Lock

template<class T >
T& LockGuard< T >::m_Lock
private

Definition at line 81 of file LockGuard.h.


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