39 ut_thread_id_t myLockedThread;
51 {
return myLockedThread; }
54 { myLockCount = lock_count; }
57 {
return myLockCount; }
76 : myDebugThisLock(false)
93 uint myDebugThisLock : 1;
94 uint myCollisions : 30;
104 template <
bool RecursiveLock = false,
bool LockDebug = true>
113 int64 getMemoryUsage(
bool inclusive)
const
114 {
return inclusive ?
sizeof(*this) : 0; }
132 void waitForTrigger();
136 { myDebug.setDebugThisLock(debug); }
139 {
return RecursiveLock ?
void debugLock(bool debug)
#define UT_INVALID_THREAD_ID
UT_UniqueLock< UT_SpinLockT< RecursiveLock, LockDebug >> Scope
void setThreadId(ut_thread_id_t thread_id)
ut_thread_id_t getThreadId()
ut_thread_id_t getThreadId()
void setDebugThisLock(bool v)
int getCollisions() const
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
bool debugThisLock() const
void setLockCount(int lock_count)
int getCollisions() const
OIIO_API void debug(string_view str)
void setDebugThisLock(bool v)
void setThreadId(ut_thread_id_t)
**Note that the tasks the thread_id
bool debugThisLock() const