12 #ifndef __UT_RWLock_h__
13 #define __UT_RWLock_h__
21 template <
typename Lock,
bool READMODE>
61 bool tryReadLock(
int ntrials=1);
68 bool tryWriteLock(
int ntrials=1);
97 ut_RWLockData *myData;
UT_AutoRWLockType(Lock &lock)
UT_AutoRWLockType< UT_RWLock, true > UT_AutoReadLock
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
#define SYS_NO_DISCARD_RESULT
A simple class to hold a rwlock and release it when it goes out of scope.
UT_AutoRWLockType< UT_RWLock, false > UT_AutoWriteLock
Reader/Writer mutex class.
UT_AutoRWLockType< UT_RWLock, false > WriteScope
UT_AutoRWLockType< UT_RWLock, true > ReadScope