add RageThread::GetCurrentThreadID
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user