kernel/condition_variable: Add a cpu_pause in the RemoveFromVariable loop.

All the other spin-loops have this, so this loop should too.
This commit is contained in:
Augustin Cavalier
2025-03-03 15:13:21 -05:00
parent a0c4b9a162
commit 5059b85380
+2
View File
@@ -147,6 +147,8 @@ ConditionVariableEntry::_RemoveFromVariable()
// we do that, we may validly use our cached pointer to the variable.
if (try_acquire_spinlock(&variable->fLock))
break;
cpu_pause();
}
// We now hold the variable's lock. Remove ourselves.