comparison src/events/SDL_events.c @ 3259:22ac66da0765

Merged Edgar's code changes from Google Summer of Code 2009
author Sam Lantinga <slouken@libsdl.org>
date Mon, 07 Sep 2009 05:06:34 +0000
parents 9da8f57ab92c
children 82ce350be859
comparison
equal deleted inserted replaced
3258:e786366ea23b 3259:22ac66da0765
194 SDL_WaitThread(SDL_EventThread, NULL); 194 SDL_WaitThread(SDL_EventThread, NULL);
195 SDL_EventThread = NULL; 195 SDL_EventThread = NULL;
196 SDL_DestroyMutex(SDL_EventLock.lock); 196 SDL_DestroyMutex(SDL_EventLock.lock);
197 } 197 }
198 #ifndef IPOD 198 #ifndef IPOD
199 SDL_DestroyMutex(SDL_EventQ.lock); 199 if (SDL_EventQ.lock) {
200 SDL_DestroyMutex(SDL_EventQ.lock);
201 SDL_EventQ.lock = NULL;
202 }
200 #endif 203 #endif
201 } 204 }
202 205
203 Uint32 206 Uint32
204 SDL_EventThreadID(void) 207 SDL_EventThreadID(void)