src/thread/SDL_thread.c
changeset 5425 346f095568ab
parent 5262 b530ef003506
child 5506 82a09d5d0f07
equal deleted inserted replaced
5424:2a206577656f 5425:346f095568ab
    54 /* This should never be called...
    54 /* This should never be called...
    55    If this is called by SDL_Quit(), we don't know whether or not we should
    55    If this is called by SDL_Quit(), we don't know whether or not we should
    56    clean up threads here.  If any threads are still running after this call,
    56    clean up threads here.  If any threads are still running after this call,
    57    they will no longer have access to any per-thread data.
    57    they will no longer have access to any per-thread data.
    58  */
    58  */
       
    59 #if 0
    59 static void
    60 static void
    60 SDL_ThreadsQuit(void)
    61 SDL_ThreadsQuit(void)
    61 {
    62 {
    62     SDL_mutex *mutex;
    63     SDL_mutex *mutex;
    63 
    64 
    65     thread_lock = NULL;
    66     thread_lock = NULL;
    66     if (mutex != NULL) {
    67     if (mutex != NULL) {
    67         SDL_DestroyMutex(mutex);
    68         SDL_DestroyMutex(mutex);
    68     }
    69     }
    69 }
    70 }
       
    71 #endif
    70 
    72 
    71 /* Routines for manipulating the thread list */
    73 /* Routines for manipulating the thread list */
    72 static void
    74 static void
    73 SDL_AddThread(SDL_Thread * thread)
    75 SDL_AddThread(SDL_Thread * thread)
    74 {
    76 {