mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
fix DelayQueue typos
This commit is contained in:
parent
aa53f6d0b5
commit
e9a4c3dd82
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user