comment out mutex spinlock

This commit is contained in:
2023-12-11 20:31:20 +01:00
parent ca571fbf64
commit 929e965121
2 changed files with 4 additions and 4 deletions

View File

@@ -18,9 +18,9 @@ bool Mutex::try_lock() {
return true;
}
void Mutex::spin_lock() {
while (!Mutex::try_lock()) { yield_self(); }
}
//void Mutex::spin_lock() {
// while (!Mutex::try_lock()) { yield_self(); }
//}
void Mutex::lock() {
bool spinned = false;

View File

@@ -20,7 +20,7 @@ public:
Mutex() = default;
void lock();
void spin_lock();
// void spin_lock();
bool try_lock();
void unlock();
bool test();