From 016bed2a9807b1148929effddea39b54d5bf120d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 23 Sep 2009 06:35:28 +0000 Subject: [PATCH] Possibly fixed bug #601, definitely fixed a potential issue with threads stopping and starting in rapid succession. --- src/thread/SDL_thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/thread/SDL_thread.c b/src/thread/SDL_thread.c index 59e080dc4..a9cca0d1d 100644 --- a/src/thread/SDL_thread.c +++ b/src/thread/SDL_thread.c @@ -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 */