diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-28 00:20:06 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-28 00:20:06 +0200 |
commit | 2f8947583f2f0af4058600243d6c1d244e3c4890 (patch) | |
tree | a0e7a10c6131efb23d6fdb3ee7fc0de4bd4163af /src/common/spin_lock.cpp | |
parent | NvFlinger: Clang Format. (diff) | |
download | yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar.gz yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar.bz2 yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar.lz yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar.xz yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar.zst yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/spin_lock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/spin_lock.cpp b/src/common/spin_lock.cpp index c7b46aac6..c1524220f 100644 --- a/src/common/spin_lock.cpp +++ b/src/common/spin_lock.cpp @@ -20,7 +20,7 @@ namespace { -void thread_pause() { +void ThreadPause() { #if __x86_64__ _mm_pause(); #elif __aarch64__ && _MSC_VER @@ -30,13 +30,13 @@ void thread_pause() { #endif } -} // namespace +} // Anonymous namespace namespace Common { void SpinLock::lock() { while (lck.test_and_set(std::memory_order_acquire)) { - thread_pause(); + ThreadPause(); } } |