Browse Source

Merge pull request #61 from GWRon/fix_sdlthread

Fix: [SDL.mod] call bbThreadUnregister for SDL_Threads (regression)
Brucey 1 year ago
parent
commit
37c5141605
1 changed files with 3 additions and 0 deletions
  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 */
     *statusloc = userfunc(userdata);
 
+	/* unregister with BlitzMax */
+	bbThreadUnregister(bbThread);
+
     /* Clean up thread-local storage */
     SDL_TLSCleanup();