| author | |
| committer | |
| log | 8ea2b40e5f621482d714fdd7cb05bbc592fc550b |
| tree | d469f4843a89edeff955926f0de9e10e5392792c |
| parent | 0edde40c25c033aec67f235365593ee26ff52740 |
closes #75721 files changed, 2 insertions(+), 1 deletions(-)
lib/std/event/loop.zig+2-1| ... | ... | @@ -796,9 +796,10 @@ pub const Loop = struct { |
| 796 | 796 | .waiters = DelayQueue.Waiters{ |
| 797 | 797 | .entries = std.atomic.Queue(anyframe).init(), |
| 798 | 798 | }, |
| 799 | .thread = try std.Thread.spawn(self, DelayQueue.run), | |
| 800 | 799 | .event = std.AutoResetEvent{}, |
| 801 | 800 | .is_running = true, |
| 801 | // Must be last so that it can read the other state, such as `is_running`. | |
| 802 | .thread = try std.Thread.spawn(self, DelayQueue.run), | |
| 802 | 803 | }; |
| 803 | 804 | } |
| 804 | 805 |