MixerCore: Use a normal acquire_sem call

* Make the thread really wake up only when requested.
This commit is contained in:
Dario Casalinuovo
2016-05-07 22:22:55 +02:00
parent 30456a328a
commit 17078f9997
@@ -533,9 +533,8 @@ MixerCore::_MixThread()
if (fHasEvent == false)
goto schedule_next_event;
ret = acquire_sem_etc(fMixThreadWaitSem, 1,
B_RELATIVE_TIMEOUT, 100000);
if (ret == B_TIMED_OUT)
ret = acquire_sem(fMixThreadWaitSem);
if (ret == B_INTERRUPTED)
continue;
else if (ret != B_OK)
return;