Skip to content

Commit

Permalink
Disable Win32 thread naming again. See Bugzilla #2089.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 21, 2013
1 parent 0e699eb commit dddb878
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/thread/windows/SDL_systhread.c
Expand Up @@ -145,6 +145,7 @@ SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
return 0;
}

#if 0 /* !!! FIXME: revisit this later. See https://bugzilla.libsdl.org/show_bug.cgi?id=2089 */
#ifdef _MSC_VER
#pragma warning(disable : 4733)
#pragma pack(push,8)
Expand All @@ -163,11 +164,13 @@ ignore_exception(void *a, void *b, void *c, void *d)
return ExceptionContinueExecution;
}
#endif
#endif

void
SDL_SYS_SetupThread(const char *name)
{
if (name != NULL) {
#if 0 /* !!! FIXME: revisit this later. See https://bugzilla.libsdl.org/show_bug.cgi?id=2089 */
#if (defined(_MSC_VER) && defined(_M_IX86))
/* This magic tells the debugger to name a thread if it's listening.
The inline asm sets up SEH (__try/__except) without C runtime
Expand Down Expand Up @@ -196,6 +199,7 @@ SDL_SYS_SetupThread(const char *name)
add esp, 8
}
#endif
#endif
}
}

Expand Down

0 comments on commit dddb878

Please sign in to comment.