From ecce498108c1f8fa2cee24a9e88f3a53b6b4df35 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 25 Feb 2004 01:33:15 +0000 Subject: [PATCH] use sm_crash --- stepmania/src/RageThreads.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageThreads.cpp b/stepmania/src/RageThreads.cpp index 1796b8335f..1c0ca936af 100644 --- a/stepmania/src/RageThreads.cpp +++ b/stepmania/src/RageThreads.cpp @@ -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