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>

Public Types

using Scope = UT_UniqueLock< UT_Lockable< MUTEX > >
 

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>
using UT_Lockable< MUTEX >::Scope = UT_UniqueLock< UT_Lockable<MUTEX> >

Definition at line 30 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 47 of file UT_Lockable.h.

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

Definition at line 37 of file UT_Lockable.h.

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

Definition at line 33 of file UT_Lockable.h.

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

Definition at line 53 of file UT_Lockable.h.

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

Definition at line 35 of file UT_Lockable.h.

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

Definition at line 32 of file UT_Lockable.h.

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

Definition at line 34 of file UT_Lockable.h.


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