12 #ifndef __UT_LOCKABLE_H_INCLUDED__
13 #define __UT_LOCKABLE_H_INCLUDED__
21 template <
typename MUTEX>
31 bool tryLock() {
return myMutex.try_lock(); }
32 void lock() { myMutex.lock(); }
48 return (inclusive ?
sizeof(*
this) : 0);
52 MUTEX&
mutex() {
return myMutex; }
58 #endif // __UT_LOCKABLE_H_INCLUDED__
exint getMemoryUsage(bool inclusive) const
UT_Lock interface adapter for C++11 mutexes.
UT_LockScopeType< UT_Lockable< MUTEX > > Scope