From 975d46a9e7ea4333ae9037a29f1d9a7ddc69be76 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. --HG-- branch : SDL-1.2 --- 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 */