Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

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 cb7fe5a commit be6e284
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/thread/SDL_thread.c
Expand Up @@ -140,9 +140,11 @@ 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 be6e284

Please sign in to comment.