src/events/SDL_events.c
changeset 2735 204be4fc2726
parent 2129 047245361002
child 2859 99210400e8b9
equal deleted inserted replaced
2734:dd25eabe441c 2735:204be4fc2726
    71         while (!SDL_EventLock.safe) {
    71         while (!SDL_EventLock.safe) {
    72             SDL_Delay(1);
    72             SDL_Delay(1);
    73         }
    73         }
    74     }
    74     }
    75 }
    75 }
       
    76 
    76 void
    77 void
    77 SDL_Unlock_EventThread(void)
    78 SDL_Unlock_EventThread(void)
    78 {
    79 {
    79     if (SDL_EventThread && (SDL_ThreadID() != event_thread)) {
    80     if (SDL_EventThread && (SDL_ThreadID() != event_thread)) {
    80         SDL_mutexV(SDL_EventLock.lock);
    81         SDL_mutexV(SDL_EventLock.lock);