diff --git a/app/src/main/cpp/skyline/common/spin_lock.cpp b/app/src/main/cpp/skyline/common/spin_lock.cpp index 3f18782f..a4e0cc83 100644 --- a/app/src/main/cpp/skyline/common/spin_lock.cpp +++ b/app/src/main/cpp/skyline/common/spin_lock.cpp @@ -18,6 +18,7 @@ namespace skyline { if (!locked.test_and_set(std::memory_order_acquire)) return; + attempt++; if (attempt % LockAttemptsPerSleep == 0) std::this_thread::sleep_for(std::chrono::microseconds(100)); else if (attempt % LockAttemptsPerYield == 0)