equal
deleted
inserted
replaced
802 first_run_semaphore = NULL; /* let other thread clean it up. */ |
802 first_run_semaphore = NULL; /* let other thread clean it up. */ |
803 } |
803 } |
804 |
804 |
805 /* Block awhile before checking again, unless we're told to stop. */ |
805 /* Block awhile before checking again, unless we're told to stop. */ |
806 ticks = SDL_GetTicks() + 5000; |
806 ticks = SDL_GetTicks() + 5000; |
807 while (!SDL_AtomicGet(&ALSA_hotplug_shutdown) && !SDL_TICKS_PASSED(SDL_GetTicks(), ticks)) |
807 while (!SDL_AtomicGet(&ALSA_hotplug_shutdown) && !SDL_TICKS_PASSED(SDL_GetTicks(), ticks)) { |
808 SDL_Delay(100); |
808 SDL_Delay(100); |
809 } |
809 } |
810 } |
810 } |
811 |
811 |
812 /* Shutting down! Clean up any data we've gathered. */ |
812 /* Shutting down! Clean up any data we've gathered. */ |