diff --git a/stepmania/src/RageThreads.cpp b/stepmania/src/RageThreads.cpp index ed98a36f4b..58868d0cb6 100644 --- a/stepmania/src/RageThreads.cpp +++ b/stepmania/src/RageThreads.cpp @@ -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; diff --git a/stepmania/src/RageThreads.h b/stepmania/src/RageThreads.h index d9c71867e3..4234a11aa5 100644 --- a/stepmania/src/RageThreads.h +++ b/stepmania/src/RageThreads.h @@ -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();