src/thread/windows/SDL_systhread.c
changeset 5973 9392717808aa
parent 5971 ca2d4b8e9e40
child 6000 3c980a9f983c
equal deleted inserted replaced
5972:8b7f8d297943 5973:9392717808aa
   159 #endif
   159 #endif
   160 
   160 
   161 void
   161 void
   162 SDL_SYS_SetupThread(const char *name)
   162 SDL_SYS_SetupThread(const char *name)
   163 {
   163 {
       
   164 #if 0  /* !!! FIXME: __except needs C runtime, which we don't link against. */
   164 #ifdef _MSC_VER  /* !!! FIXME: can we do SEH on other compilers yet? */
   165 #ifdef _MSC_VER  /* !!! FIXME: can we do SEH on other compilers yet? */
   165     /* This magic tells the debugger to name a thread if it's listening. */
   166     /* This magic tells the debugger to name a thread if it's listening. */
   166     THREADNAME_INFO inf;
   167     THREADNAME_INFO inf;
   167     inf.dwType = 0x1000;
   168     inf.dwType = 0x1000;
   168     inf.szName = name;
   169     inf.szName = name;
   176     __except(EXCEPTION_CONTINUE_EXECUTION)
   177     __except(EXCEPTION_CONTINUE_EXECUTION)
   177     {
   178     {
   178         /* The program itself should ignore this bogus exception. */
   179         /* The program itself should ignore this bogus exception. */
   179     }
   180     }
   180 #endif
   181 #endif
       
   182 #endif
   181 }
   183 }
   182 
   184 
   183 SDL_threadID
   185 SDL_threadID
   184 SDL_ThreadID(void)
   186 SDL_ThreadID(void)
   185 {
   187 {