UT_LockScopeType< Lock > Class Template Reference

#include <UT_LockUtil.h>

List of all members.

Public Member Functions

 UT_LockScopeType ()
 UT_LockScopeType (Lock &mutex, bool acquire=true)
 ~UT_LockScopeType ()
void lock ()
bool tryLock ()
bool safeLock (Lock &mutex)
void unlock ()


Detailed Description

template<class Lock>
class UT_LockScopeType< Lock >

Like UT_AutoLockType except it supports explicit control of when to lock (or unlock) while providing exception safety.
Note:
This is similar to boost::unique_lock

Definition at line 52 of file UT_LockUtil.h.


Constructor & Destructor Documentation

template<class Lock >
UT_LockScopeType< Lock >::UT_LockScopeType (  )  [inline]

Definition at line 55 of file UT_LockUtil.h.

template<class Lock >
UT_LockScopeType< Lock >::UT_LockScopeType ( Lock &  mutex,
bool  acquire = true 
) [inline]

Definition at line 60 of file UT_LockUtil.h.

template<class Lock >
UT_LockScopeType< Lock >::~UT_LockScopeType (  )  [inline]

Definition at line 67 of file UT_LockUtil.h.


Member Function Documentation

template<class Lock >
void UT_LockScopeType< Lock >::lock (  )  [inline]

Definition at line 73 of file UT_LockUtil.h.

template<class Lock >
bool UT_LockScopeType< Lock >::safeLock ( Lock &  mutex  )  [inline]

Definition at line 95 of file UT_LockUtil.h.

template<class Lock >
bool UT_LockScopeType< Lock >::tryLock (  )  [inline]

Definition at line 84 of file UT_LockUtil.h.

template<class Lock >
void UT_LockScopeType< Lock >::unlock (  )  [inline]

Definition at line 108 of file UT_LockUtil.h.


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

Generated on Mon Jan 28 00:30:11 2013 for HDK by  doxygen 1.5.9