Common/Semaphore: Fix WaitWithYield() returning immediately

This caused the WaitGS() issued from the main thread when applying
renderer settings (while the core thread was paused) to return
immediately, and a massive race resuming.
This commit is contained in:
Connor McLaughlin 2022-04-15 23:07:54 +10:00 committed by refractionpcsx2
parent 5297c2a995
commit 0e9dcf74b2
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ void Threading::KernelSemaphore::WaitWithYield()
{
#ifdef _WIN32
u64 millis = def_yieldgui_interval.GetMilliseconds().GetValue();
while (pthreadCancelableTimedWait(m_sema, millis) == WAIT_TIMEOUT)
while (pthreadCancelableTimedWait(m_sema, millis) == ETIMEDOUT)
YieldToMain();
#else
while (true)