From 1764e75bcc13a1184c38ac126153c97bd10dd43d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 23 Sep 2009 06:37:27 +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 ee9d00f11..b32eb0798 100644 --- a/src/thread/SDL_thread.c +++ b/src/thread/SDL_thread.c @@ -140,9 +140,11 @@ 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 */