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 {...@@ -792,7 +792,7 @@ pub const Loop = struct {
792 .waiters = DelayQueue.Waiters{792 .waiters = DelayQueue.Waiters{
793 .entries = std.atomic.Queue(anyframe).init(),793 .entries = std.atomic.Queue(anyframe).init(),
794 },794 },
795 .thread = try std.Thread.spawn(&self.delay_queue, DelayQueue.run),795 .thread = try std.Thread.spawn(self, DelayQueue.run),
796 .event = std.AutoResetEvent{},796 .event = std.AutoResetEvent{},
797 .is_running = true,797 .is_running = true,
798 };798 };
...@@ -858,7 +858,7 @@ pub const Loop = struct {...@@ -858,7 +858,7 @@ pub const Loop = struct {
858 return entry.expires;858 return entry.expires;
859 }859 }
860860
861 fn peekExpiringEntry() ?*Entry {861 fn peekExpiringEntry(self: *Waiters) ?*Entry {
862 const held = self.entries.mutex.acquire();862 const held = self.entries.mutex.acquire();
863 defer held.release();863 defer held.release();
864864