src/events/SDL_events.c
changeset 6495 2bf42c5e897a
parent 6138 4c64952a58fb
child 6588 f739b8044c26
equal deleted inserted replaced
6494:309599be5c2a 6495:2bf42c5e897a
    83 
    83 
    84 void
    84 void
    85 SDL_StopEventLoop(void)
    85 SDL_StopEventLoop(void)
    86 {
    86 {
    87     int i;
    87     int i;
       
    88 
       
    89     SDL_EventQ.active = 0;
    88 
    90 
    89     if (SDL_EventQ.lock) {
    91     if (SDL_EventQ.lock) {
    90         SDL_DestroyMutex(SDL_EventQ.lock);
    92         SDL_DestroyMutex(SDL_EventQ.lock);
    91         SDL_EventQ.lock = NULL;
    93         SDL_EventQ.lock = NULL;
    92     }
    94     }