This commit is contained in:
2024-02-29 22:33:00 +01:00
parent 96aff20678
commit f46dd92d0b

View File

@@ -24,7 +24,7 @@ public:
void spinlock() {
assert2(!are_interrupts_enabled(), "Assuming all spinlocks are without interrupts");
while (!try_lock()) { yield_self(); }
while (!try_lock()) { yield_self(); }// FIXME: Should be pause!
}
void unlock() {