From 1414f9149bb700b9891182a7aff4e5aea4380097 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 27 Jul 2003 03:13:40 +0000 Subject: [PATCH] name the main thread --- stepmania/src/RageThreads.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/stepmania/src/RageThreads.cpp b/stepmania/src/RageThreads.cpp index c50c6bc74a..d04536b1c1 100644 --- a/stepmania/src/RageThreads.cpp +++ b/stepmania/src/RageThreads.cpp @@ -17,6 +17,10 @@ #include "RageLog.h" #include "RageUtil.h" +#ifdef _WINDOWS +#include "archutils/win32/tls.h" +#endif + #include "SDL_utils.h" #include @@ -110,6 +114,11 @@ void ThreadSlot::SetupThisThread() #if defined(PID_BASED_THREADS) pid = getpid(); #endif + +#ifdef _WINDOWS + InitThreadData( name ); +#endif + threadid = SDL_ThreadID(); } @@ -165,6 +174,7 @@ struct SetupMainThread SetupMainThread() { int slot = FindEmptyThreadSlot(); + strcpy( g_ThreadSlots[slot].name, "main thread" ); g_ThreadSlots[slot].SetupThisThread(); } } SetupMainThreadObj;