src/events/SDL_events.c
changeset 1140 af8b0f9ac2f4
parent 1123 28ac87a38c17
child 1190 173c063d4f55
equal deleted inserted replaced
1139:d0ae4dff7208 1140:af8b0f9ac2f4
   179 	if ( SDL_EventThread ) {
   179 	if ( SDL_EventThread ) {
   180 		SDL_WaitThread(SDL_EventThread, NULL);
   180 		SDL_WaitThread(SDL_EventThread, NULL);
   181 		SDL_EventThread = NULL;
   181 		SDL_EventThread = NULL;
   182 		SDL_DestroyMutex(SDL_EventLock.lock);
   182 		SDL_DestroyMutex(SDL_EventLock.lock);
   183 	}
   183 	}
       
   184 #ifndef IPOD
   184 	SDL_DestroyMutex(SDL_EventQ.lock);
   185 	SDL_DestroyMutex(SDL_EventQ.lock);
       
   186 #endif
   185 }
   187 }
   186 
   188 
   187 Uint32 SDL_EventThreadID(void)
   189 Uint32 SDL_EventThreadID(void)
   188 {
   190 {
   189 	return(event_thread);
   191 	return(event_thread);