Merge pull request #3403 from Sonicadvance1/fix_spinlock_contended_lock

SpinLockWait: Fixes unexpected lock success
This commit is contained in:
Ryan Houdek 2024-02-05 06:51:42 -08:00 committed by GitHub
commit 472a701e2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));
}