mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +01:00
comment out mutex spinlock
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -20,7 +20,7 @@ public:
|
||||
Mutex() = default;
|
||||
|
||||
void lock();
|
||||
void spin_lock();
|
||||
// void spin_lock();
|
||||
bool try_lock();
|
||||
void unlock();
|
||||
bool test();
|
||||
|
||||
Reference in New Issue
Block a user