Possibly fixed bug #601, definitely fixed a potential issue with threads
authorSam Lantinga
Wed, 23 Sep 2009 06:37:27 +0000
changeset 330034a4a01da79c
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
     1.1 --- a/src/thread/SDL_thread.c	Wed Sep 23 02:52:11 2009 +0000
     1.2 +++ b/src/thread/SDL_thread.c	Wed Sep 23 06:37:27 2009 +0000
     1.3 @@ -140,9 +140,11 @@
     1.4      }
     1.5      SDL_mutexV(thread_lock);
     1.6  
     1.7 +#if 0   /* There could be memory corruption if another thread is starting */
     1.8      if (SDL_Threads == NULL) {
     1.9          SDL_ThreadsQuit();
    1.10      }
    1.11 +#endif
    1.12  }
    1.13  
    1.14  /* The default (non-thread-safe) global error variable */