summaryrefslogtreecommitdiff
path: root/src/common/spin_lock.cpp
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-06-27 18:20:06 -0400
committerGravatar Fernando Sahmkow2020-06-27 18:20:06 -0400
commit2f8947583f2f0af4058600243d6c1d244e3c4890 (patch)
treea0e7a10c6131efb23d6fdb3ee7fc0de4bd4163af /src/common/spin_lock.cpp
parentNvFlinger: Clang Format. (diff)
downloadyuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar.gz
yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar.xz
yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.zip
Core/Common: Address Feedback.
Diffstat (limited to '')
-rw-r--r--src/common/spin_lock.cpp6
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 @@
20 20
21namespace { 21namespace {
22 22
23void thread_pause() { 23void ThreadPause() {
24#if __x86_64__ 24#if __x86_64__
25 _mm_pause(); 25 _mm_pause();
26#elif __aarch64__ && _MSC_VER 26#elif __aarch64__ && _MSC_VER
@@ -30,13 +30,13 @@ void thread_pause() {
30#endif 30#endif
31} 31}
32 32
33} // namespace 33} // Anonymous namespace
34 34
35namespace Common { 35namespace Common {
36 36
37void SpinLock::lock() { 37void SpinLock::lock() {
38 while (lck.test_and_set(std::memory_order_acquire)) { 38 while (lck.test_and_set(std::memory_order_acquire)) {
39 thread_pause(); 39 ThreadPause();
40 } 40 }
41} 41}
42 42