add RageThread::GetCurrentThreadID

This commit is contained in:
Glenn Maynard
2004-04-07 03:38:15 +00:00
parent 058695b969
commit e1d583dac4
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -439,6 +439,11 @@ void RageThread::ResumeAllThreads()
#endif
}
unsigned int RageThread::GetCurrentThreadID()
{
return SDL_ThreadID();
}
/* Normally, checkpoints are only seen in crash logs. It's occasionally useful
* to see them in logs, but this outputs a huge amount of text. */
static bool g_LogCheckpoints = false;
+2
View File
@@ -22,6 +22,8 @@ public:
/* If HaltAllThreads was called (with Kill==false), resume. */
static void ResumeAllThreads();
static unsigned int GetCurrentThreadID();
static const char *GetCurThreadName();
int Wait();