changed sleep() to SDL_Delay()
This commit is contained in:
@@ -265,7 +265,7 @@ int RageSound_Linux::MixerThread_start(void *p) {
|
|||||||
void RageSound_Linux::MixerThread() {
|
void RageSound_Linux::MixerThread() {
|
||||||
/* SOUNDMAN will be set once RageSoundManager's ctor returns and
|
/* SOUNDMAN will be set once RageSoundManager's ctor returns and
|
||||||
* assigns it; we might get here before that happens, though. */
|
* assigns it; we might get here before that happens, though. */
|
||||||
while(!SOUNDMAN && !shutdown) sleep(10);
|
while(!SOUNDMAN && !shutdown) SDL_Delay(10);
|
||||||
while(!shutdown) { while (GetData()); }
|
while(!shutdown) { while (GetData()); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user