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>
112 {
return inclusive ?
sizeof(*this) : 0; }
130 void waitForTrigger();
134 { myDebug.setDebugThisLock(debug); }
137 {
return RecursiveLock ?
void debugLock(bool debug)
#define UT_INVALID_THREAD_ID
void setThreadId(ut_thread_id_t thread_id)
ut_thread_id_t getThreadId()
ut_thread_id_t getThreadId()
void setDebugThisLock(bool v)
int64 getMemoryUsage(bool inclusive) const
int getCollisions() const
bool debugThisLock() const
void setLockCount(int lock_count)
*Note that the tasks the thread_id
int getCollisions() const
OIIO_API void debug(string_view str)
void setDebugThisLock(bool v)
void setThreadId(ut_thread_id_t)
UT_LockScopeType< UT_SpinLockT< RecursiveLock, LockDebug > > Scope
bool debugThisLock() const