ke/wait: add wait_reason

This commit is contained in:
Loïc Grégoire
2026-08-02 00:02:00 -04:00
parent 05c7694776
commit 24372a2b4e
12 changed files with 21 additions and 13 deletions
+3 -1
View File
@@ -75,7 +75,9 @@ pub const Queue = struct {
self.hdr.lock.release(ipl);
// Wait until the queue has something for us.
_ = try ke.wait.wait_one(&self.hdr, .{ .timeout = timeout });
_ = try ke.wait.wait_one(&self.hdr, "queue", .{
.timeout = timeout,
});
// Grab the queue item and set it to null.
const ret = td.queue_item orelse unreachable;