disable lock ordering checks for now

This commit is contained in:
Glenn Maynard
2004-05-05 20:37:14 +00:00
parent f7c858b89d
commit 01e54b95a0
+5 -3
View File
@@ -894,13 +894,15 @@ RageMutex::~RageMutex()
void RageMutex::Lock()
{
const bool bWasLocked = mut->IsLockedByThisThread();
// const bool bWasLocked = mut->IsLockedByThisThread();
mut->Lock();
/* Only do lock ordering checks on initial locks, to prevent false positives. */
if( !bWasLocked )
MarkLockedMutex();
/* This has internal thread safety issues itself (eg. one thread may delete
* a mutex while another locks one); disable for now. */
// if( !bWasLocked )
// MarkLockedMutex();
}
void RageMutex::Unlock()