MixerCore: Use a normal acquire_sem call
* Make the thread really wake up only when requested.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user