ke: clean up wait after continuation

This commit is contained in:
Loïc Grégoire
2026-10-04 11:37:52 -04:00
parent 8815e5e52c
commit 6701f17fb1
2 changed files with 9 additions and 9 deletions
+5
View File
@@ -382,6 +382,11 @@ pub fn call_continuation(ptr: ?*anyopaque) noreturn {
const td: *ke.Thread = @ptrCast(@alignCast(ptr));
std.debug.assert(td.continuation != null);
// Clean things that were set up by the wait (e.g timeout).
_ = kep.wait.post_wait(td) catch {
// Don't care about the status.
};
const cont = td.continuation.?;
td.continuation = null;