Navigation Menu

Skip to content

Commit

Permalink
Possibly fixed bug #601, definitely fixed a potential issue with threads
Browse files Browse the repository at this point in the history
stopping and starting in rapid succession.
  • Loading branch information
slouken committed Sep 23, 2009
1 parent 6f4e800 commit 016bed2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/thread/SDL_thread.c
Expand Up @@ -134,9 +134,11 @@ static void 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 */
Expand Down

0 comments on commit 016bed2

Please sign in to comment.