Possibly fixed bug #601, definitely fixed a potential issue with threads
authorSam Lantinga <slouken@libsdl.org>
Wed, 23 Sep 2009 06:37:27 +0000
changeset 3300 34a4a01da79c
parent 3299 975fd903466b
child 3301 047c8dcf0eb0
Possibly fixed bug #601, definitely fixed a potential issue with threads stopping and starting in rapid succession.
src/thread/SDL_thread.c
--- a/src/thread/SDL_thread.c	Wed Sep 23 02:52:11 2009 +0000
+++ b/src/thread/SDL_thread.c	Wed Sep 23 06:37:27 2009 +0000
@@ -140,9 +140,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 */