authorgravatar for 45520026+kprotty@users.noreply.github.comkprotty <45520026+kprotty@users.noreply.github.com> 2020-10-11 14:21:36-05:00
committergravatar for 45520026+kprotty@users.noreply.github.comkprotty <45520026+kprotty@users.noreply.github.com> 2020-10-11 14:21:36-05:00
loge9a4c3dd82eb88d2b0759cded48794642f192bbd
tree7b099939b38baa06d661b8be7177159d035fbab8
parentaa53f6d0b5e7fd1904cd24379b77445babf82f96

fix DelayQueue typos


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/event/loop.zig+2-2
......@@ -792,7 +792,7 @@ pub const Loop = struct {
792792 .waiters = DelayQueue.Waiters{
793793 .entries = std.atomic.Queue(anyframe).init(),
794794 },
795 .thread = try std.Thread.spawn(&self.delay_queue, DelayQueue.run),
795 .thread = try std.Thread.spawn(self, DelayQueue.run),
796796 .event = std.AutoResetEvent{},
797797 .is_running = true,
798798 };
......@@ -858,7 +858,7 @@ pub const Loop = struct {
858858 return entry.expires;
859859 }
860860
861 fn peekExpiringEntry() ?*Entry {
861 fn peekExpiringEntry(self: *Waiters) ?*Entry {
862862 const held = self.entries.mutex.acquire();
863863 defer held.release();
864864