aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/spinlock.h
diff options
context:
space:
mode:
authorvskipin <vskipin@yandex-team.ru>2022-02-10 16:46:00 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:00 +0300
commit4d8b546b89b5afc08cf3667e176271c7ba935f33 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/system/spinlock.h
parent4e4b78bd7b67e2533da4dbb9696374a6d6068e32 (diff)
downloadydb-4d8b546b89b5afc08cf3667e176271c7ba935f33.tar.gz
Restoring authorship annotation for <vskipin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/spinlock.h')
-rw-r--r--util/system/spinlock.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/spinlock.h b/util/system/spinlock.h
index cd8c6f26a3..af2630890a 100644
--- a/util/system/spinlock.h
+++ b/util/system/spinlock.h
@@ -27,13 +27,13 @@ protected:
};
static inline void SpinLockPause() {
-#if defined(__GNUC__)
- #if defined(_i386_) || defined(_x86_64_)
+#if defined(__GNUC__)
+ #if defined(_i386_) || defined(_x86_64_)
__asm __volatile("pause");
- #elif defined(_arm64_)
- __asm __volatile("yield" ::
- : "memory");
- #endif
+ #elif defined(_arm64_)
+ __asm __volatile("yield" ::
+ : "memory");
+ #endif
#endif
}