mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-27 13:58:20 +00:00
ke: fix scheduler deadlock on switching
This commit is contained in:
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user