Possibly fixed bug #601, definitely fixed a potential issue with threads

stopping and starting in rapid succession.

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2009-09-23 06:35:28 +00:00
parent 4a8698df83
commit 975d46a9e7

View File

@@ -134,9 +134,11 @@ static void SDL_DelThread(SDL_Thread *thread)
}
SDL_mutexV(thread_lock);
#if 0 /* There could be memory corruption if another thread is starting */
if ( SDL_Threads == NULL ) {
SDL_ThreadsQuit();
}
#endif
}
/* The default (non-thread-safe) global error variable */