mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-03-05 04:57:12 +00:00
Merge pull request #3403 from Sonicadvance1/fix_spinlock_contended_lock
SpinLockWait: Fixes unexpected lock success
This commit is contained in:
commit
472a701e2b
@ -259,6 +259,7 @@ namespace FEXCore::Utils::SpinWaitLock {
|
||||
do {
|
||||
// Wait until the futex is unlocked.
|
||||
Wait(Futex, 0);
|
||||
Expected = 0;
|
||||
} while (!AtomicFutex->compare_exchange_strong(Expected, Desired));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user