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
@@ -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 );
}