diff src/thread/SDL_thread.c @ 4235:88aa213ffc7b SDL-1.2

Possibly fixed bug #601, definitely fixed a potential issue with threads stopping and starting in rapid succession.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 23 Sep 2009 06:35:28 +0000
parents a1b03ba2fcd0
children
line wrap: on
line diff
--- a/src/thread/SDL_thread.c	Wed Sep 23 05:16:54 2009 +0000
+++ b/src/thread/SDL_thread.c	Wed Sep 23 06:35:28 2009 +0000
@@ -134,9 +134,11 @@
 	}
 	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 */