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) if (fHasEvent == false)
goto schedule_next_event; goto schedule_next_event;
ret = acquire_sem_etc(fMixThreadWaitSem, 1, ret = acquire_sem(fMixThreadWaitSem);
B_RELATIVE_TIMEOUT, 100000); if (ret == B_INTERRUPTED)
if (ret == B_TIMED_OUT)
continue; continue;
else if (ret != B_OK) else if (ret != B_OK)
return; return;