Commit 46669bc4 authored by Sam Lantinga's avatar Sam Lantinga

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
parent eb32c573
...@@ -140,9 +140,11 @@ SDL_DelThread(SDL_Thread * thread) ...@@ -140,9 +140,11 @@ SDL_DelThread(SDL_Thread * thread)
} }
SDL_mutexV(thread_lock); SDL_mutexV(thread_lock);
#if 0 /* There could be memory corruption if another thread is starting */
if (SDL_Threads == NULL) { if (SDL_Threads == NULL) {
SDL_ThreadsQuit(); SDL_ThreadsQuit();
} }
#endif
} }
/* The default (non-thread-safe) global error variable */ /* The default (non-thread-safe) global error variable */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment