check CRASH_HANDLER
This commit is contained in:
@@ -22,12 +22,13 @@
|
|||||||
|
|
||||||
#include "arch/Threads/Threads.h"
|
#include "arch/Threads/Threads.h"
|
||||||
|
|
||||||
|
#if defined(CRASH_HANDLER)
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
#include "archutils/Win32/crash.h"
|
#include "archutils/Win32/crash.h"
|
||||||
#endif
|
#elif defined(UNIX)
|
||||||
#if defined(CRASH_HANDLER)
|
|
||||||
#include "archutils/Unix/CrashHandler.h"
|
#include "archutils/Unix/CrashHandler.h"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MAX_THREADS 128
|
#define MAX_THREADS 128
|
||||||
//static vector<RageMutex*> *g_MutexList = NULL; /* watch out for static initialization order problems */
|
//static vector<RageMutex*> *g_MutexList = NULL; /* watch out for static initialization order problems */
|
||||||
@@ -512,8 +513,12 @@ void RageMutex::Lock()
|
|||||||
ThisSlot? ThisSlot->GetThreadName(): "(???" ")", // stupid trigraph warnings
|
ThisSlot? ThisSlot->GetThreadName(): "(???" ")", // stupid trigraph warnings
|
||||||
OtherSlot? OtherSlot->GetThreadName(): "(???" ")" );
|
OtherSlot? OtherSlot->GetThreadName(): "(???" ")" );
|
||||||
|
|
||||||
|
#if defined(CRASH_HANDLER)
|
||||||
/* Pass the crash handle of the other thread, so it can backtrace that thread. */
|
/* Pass the crash handle of the other thread, so it can backtrace that thread. */
|
||||||
ForceCrashHandlerDeadlock( sReason, OtherSlot? OtherSlot->pImpl->GetCrashHandle():0 );
|
ForceCrashHandlerDeadlock( sReason, OtherSlot? OtherSlot->pImpl->GetCrashHandle():0 );
|
||||||
|
#else
|
||||||
|
RageException::Throw( "%s", sReason );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
m_LockedBy = GetThisThreadId();
|
m_LockedBy = GetThisThreadId();
|
||||||
|
|||||||
Reference in New Issue
Block a user