mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
5297c2a995
commit
0e9dcf74b2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue