fix: various fixes
This commit is contained in:
1 parent
4a1d62c337
commit
a001fa513d
10 files changed
+50176
-10
No files matched your search
@@ -8,7 +8,9 @@
|
||||
|
||||
namespace kcp {
|
||||
void Spinlock::Acquire() {
|
||||
while (atomic_flag.test_and_set(std::memory_order_acquire));
|
||||
while (atomic_flag.test_and_set(std::memory_order_acquire)) {
|
||||
asm volatile("pause");
|
||||
}
|
||||
}
|
||||
|
||||
void Spinlock::Release() {
|
||||
|
||||
Reference in new issue
Block a user