From 46669bc45a1fb3d4df7ba31a3bdcc436622d9a1f 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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403884 --- 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 */