fix: various fixes

This commit is contained in:
2026-02-22 10:53:30 +01:00
parent e0bfc97f0f
commit 99f231acd2
11 changed files with 50176 additions and 10 deletions
+3 -1
View File
@@ -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() {