use sm_crash
This commit is contained in:
@@ -480,7 +480,11 @@ RageMutexImpl::~RageMutexImpl()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CrashDeadlocked() { *(char*)0=0; }
|
void CrashDeadlocked()
|
||||||
|
{
|
||||||
|
sm_crash();
|
||||||
|
}
|
||||||
|
|
||||||
void RageMutexImpl::Lock()
|
void RageMutexImpl::Lock()
|
||||||
{
|
{
|
||||||
if( LockedBy == GetCurrentThreadId() )
|
if( LockedBy == GetCurrentThreadId() )
|
||||||
@@ -538,7 +542,7 @@ void RageMutexImpl::Unlock()
|
|||||||
/* We can't ASSERT here, since this is called from checkpoints, which is
|
/* We can't ASSERT here, since this is called from checkpoints, which is
|
||||||
* called from ASSERT. */
|
* called from ASSERT. */
|
||||||
if( !ret )
|
if( !ret )
|
||||||
*(char*)0=0;
|
sm_crash();
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user