use sm_crash

This commit is contained in:
Glenn Maynard
2004-02-25 01:33:15 +00:00
parent 2c881d223c
commit ecce498108
+7 -3
View File
@@ -480,7 +480,11 @@ RageMutexImpl::~RageMutexImpl()
}
void CrashDeadlocked() { *(char*)0=0; }
void CrashDeadlocked()
{
sm_crash();
}
void RageMutexImpl::Lock()
{
if( LockedBy == GetCurrentThreadId() )
@@ -536,9 +540,9 @@ void RageMutexImpl::Unlock()
const bool ret = !!ReleaseMutex( mutex );
/* We can't ASSERT here, since this is called from checkpoints, which is
* called from ASSERT. */
* called from ASSERT. */
if( !ret )
*(char*)0=0;
sm_crash();
}
#else