ke: fix scheduler deadlock on switching

This commit is contained in:
Loïc Grégoire
2026-09-19 22:19:30 -04:00
parent 472cecea08
commit e7655e9725
+1 -1
View File
@@ -1318,7 +1318,7 @@ pub fn yield_locked(continuation: ?ke.Continuation) void {
break;
}
while (next.?.switching.load(.monotonic) == true) {
while (cur != next and next.?.switching.load(.monotonic) == true) {
std.atomic.spinLoopHint();
}