فهرست منبع

Merge pull request #61 from GWRon/fix_sdlthread

Fix: [SDL.mod] call bbThreadUnregister for SDL_Threads (regression)
Brucey 1 سال پیش
والد
کامیت
37c5141605
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      sdl.mod/SDL/src/thread/SDL_thread.c

+ 3 - 0
sdl.mod/SDL/src/thread/SDL_thread.c

@@ -296,6 +296,9 @@ void SDL_RunThread(SDL_Thread *thread)
     /* Run the function */
     /* Run the function */
     *statusloc = userfunc(userdata);
     *statusloc = userfunc(userdata);
 
 
+	/* unregister with BlitzMax */
+	bbThreadUnregister(bbThread);
+
     /* Clean up thread-local storage */
     /* Clean up thread-local storage */
     SDL_TLSCleanup();
     SDL_TLSCleanup();