aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/event/loop.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig
index 8c43f3210c..c9911a174e 100644
--- a/lib/std/event/loop.zig
+++ b/lib/std/event/loop.zig
@@ -792,7 +792,7 @@ pub const Loop = struct {
.waiters = DelayQueue.Waiters{
.entries = std.atomic.Queue(anyframe).init(),
},
- .thread = try std.Thread.spawn(&self.delay_queue, DelayQueue.run),
+ .thread = try std.Thread.spawn(self, DelayQueue.run),
.event = std.AutoResetEvent{},
.is_running = true,
};
@@ -858,7 +858,7 @@ pub const Loop = struct {
return entry.expires;
}
- fn peekExpiringEntry() ?*Entry {
+ fn peekExpiringEntry(self: *Waiters) ?*Entry {
const held = self.entries.mutex.acquire();
defer held.release();