1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-09-07 06:46:31 -05:00

Common/Tests: Address Feedback

This commit is contained in:
Fernando Sahmkow
2020-02-10 14:45:08 -04:00
parent 3398f701ee
commit 1f7dd36499
9 changed files with 51 additions and 39 deletions

View File

@@ -35,8 +35,9 @@ void thread_pause() {
namespace Common {
void SpinLock::lock() {
while (lck.test_and_set(std::memory_order_acquire))
while (lck.test_and_set(std::memory_order_acquire)) {
thread_pause();
}
}
void SpinLock::unlock() {