GetCurThreadName -> GetCurrentThreadName to match GetCurrentThreadID.

This commit is contained in:
Steve Checkoway
2007-02-23 10:35:00 +00:00
parent 03ee27cf21
commit 2faaa7518a
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ RageThreadRegister::~RageThreadRegister()
m_pSlot = NULL;
}
const char *RageThread::GetCurThreadName()
const char *RageThread::GetCurrentThreadName()
{
return GetThreadNameByID( GetCurrentThreadID() );
}
+2 -2
View File
@@ -25,7 +25,7 @@ public:
static uint64_t GetCurrentThreadID();
static const char *GetCurThreadName();
static const char *GetCurrentThreadName();
static const char *GetThreadNameByID( uint64_t iID );
static bool EnumThreadIDs( int n, uint64_t &iID );
int Wait();
@@ -49,7 +49,7 @@ private:
static bool s_bIsShowingDialog;
};
/* Register a thread created outside of RageThread. This gives it a name for RageThread::GetCurThreadName,
/* Register a thread created outside of RageThread. This gives it a name for RageThread::GetCurrentThreadName,
* and allocates a slot for checkpoints. */
class RageThreadRegister
{
@@ -171,7 +171,7 @@ static void parent_process( int to_child, const CrashData *crash )
return;
/* 6. Write the crashed thread's name. */
p = RageThread::GetCurThreadName();
p = RageThread::GetCurrentThreadName();
size = strlen( p )+1;
if( !parent_write(to_child, &size, sizeof(size)) )
return;
@@ -365,7 +365,7 @@ void CrashHandler::ForceDeadlock( RString reason, uint64_t iID )
strncpy( crash.m_ThreadName[1], RageThread::GetThreadNameByID(iID), sizeof(crash.m_ThreadName[0])-1 );
}
strncpy( crash.m_ThreadName[0], RageThread::GetCurThreadName(), sizeof(crash.m_ThreadName[0])-1 );
strncpy( crash.m_ThreadName[0], RageThread::GetCurrentThreadName(), sizeof(crash.m_ThreadName[0])-1 );
strncpy( crash.reason, reason, min(sizeof(crash.reason) - 1, reason.length()) );
crash.reason[ sizeof(crash.reason)-1 ] = 0;
@@ -394,7 +394,7 @@ void CrashHandler::CrashSignalHandler( int signal, siginfo_t *si, const ucontext
BacktraceAllThreads( crash );
#endif
strncpy( crash.m_ThreadName[0], RageThread::GetCurThreadName(), sizeof(crash.m_ThreadName[0])-1 );
strncpy( crash.m_ThreadName[0], RageThread::GetCurrentThreadName(), sizeof(crash.m_ThreadName[0])-1 );
RunCrashHandler( &crash );
}