HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Lockable< MUTEX > Class Template Reference

UT_Lock interface adapter for C++11 mutexes. More...

#include <UT_Lockable.h>

+ Inheritance diagram for UT_Lockable< MUTEX >:

Public Types

typedef UT_LockScopeType
< UT_Lockable< MUTEX > > 
Scope
 

Public Member Functions

 UT_Lockable ()
 
 ~UT_Lockable ()
 
bool tryLock ()
 
void lock ()
 
void unlock ()
 
bool safeLock ()
 
bool isLocked ()
 
exint getMemoryUsage (bool inclusive) const
 

Protected Member Functions

MUTEX & mutex ()
 

Detailed Description

template<typename MUTEX>
class UT_Lockable< MUTEX >

UT_Lock interface adapter for C++11 mutexes.

Definition at line 22 of file UT_Lockable.h.

Member Typedef Documentation

template<typename MUTEX>
typedef UT_LockScopeType< UT_Lockable<MUTEX> > UT_Lockable< MUTEX >::Scope

Definition at line 29 of file UT_Lockable.h.

Constructor & Destructor Documentation

template<typename MUTEX>
UT_Lockable< MUTEX >::UT_Lockable ( )
inline

Definition at line 25 of file UT_Lockable.h.

template<typename MUTEX>
UT_Lockable< MUTEX >::~UT_Lockable ( )
inline

Definition at line 26 of file UT_Lockable.h.

Member Function Documentation

template<typename MUTEX>
exint UT_Lockable< MUTEX >::getMemoryUsage ( bool  inclusive) const
inline

Definition at line 46 of file UT_Lockable.h.

template<typename MUTEX>
bool UT_Lockable< MUTEX >::isLocked ( )
inline

Definition at line 36 of file UT_Lockable.h.

template<typename MUTEX>
void UT_Lockable< MUTEX >::lock ( )
inline

Definition at line 32 of file UT_Lockable.h.

template<typename MUTEX>
MUTEX& UT_Lockable< MUTEX >::mutex ( )
inlineprotected

Definition at line 52 of file UT_Lockable.h.

template<typename MUTEX>
bool UT_Lockable< MUTEX >::safeLock ( )
inline

Definition at line 34 of file UT_Lockable.h.

template<typename MUTEX>
bool UT_Lockable< MUTEX >::tryLock ( )
inline

Definition at line 31 of file UT_Lockable.h.

template<typename MUTEX>
void UT_Lockable< MUTEX >::unlock ( )
inline

Definition at line 33 of file UT_Lockable.h.


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