|
@@ -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();
|
|
|
|
|