aboutsummaryrefslogtreecommitdiff
path: root/src/common/spin_lock.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-06-28 12:37:50 -0400
committerGitHub <noreply@github.com>2020-06-28 12:37:50 -0400
commit58f337e1052d006cd8d121925b14153ec37e4106 (patch)
treeecf4023b4ee0c91555c1d8263762fcb9dcb04a17 /src/common/spin_lock.cpp
parent8f4ce08e759566af3f4a1a0687c650858884955a (diff)
parent94a51e6b212e989be5ffb2a38dfcdc3140640cfe (diff)
Merge pull request #3955 from FernandoS27/prometheus-2b
Remake Kernel Scheduling, CPU Management & Boot Management (Prometheus)
Diffstat (limited to 'src/common/spin_lock.cpp')
-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 c7b46aac6b..c1524220f6 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();
}
}