src/audio/alsa/SDL_alsa_audio.c
changeset 10285 9859cda24699
parent 10284 bd207addc5ec
child 10286 3b884985835c
equal deleted inserted replaced
10284:bd207addc5ec 10285:9859cda24699
   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. */