diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-04-04 15:19:55 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-10-29 06:20:48 -0700 |
| commit | e1cbcecf89d9ac60f00b3d78c3d5ca7db0f35c5c (patch) | |
| tree | ab0d447d55152d22096731a04cd6ebbe5d16170c /lib/std/Io/EventLoop.zig | |
| parent | 4b657d2de560a0a97d60ab22013fc190e1819486 (diff) | |
| download | zig-e1cbcecf89d9ac60f00b3d78c3d5ca7db0f35c5c.tar.gz zig-e1cbcecf89d9ac60f00b3d78c3d5ca7db0f35c5c.zip | |
Io: update for new linked list API
Diffstat (limited to 'lib/std/Io/EventLoop.zig')
| -rw-r--r-- | lib/std/Io/EventLoop.zig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/std/Io/EventLoop.zig b/lib/std/Io/EventLoop.zig index b821f2f7e4..6f067821bf 100644 --- a/lib/std/Io/EventLoop.zig +++ b/lib/std/Io/EventLoop.zig @@ -13,7 +13,7 @@ main_fiber_buffer: [@sizeOf(Fiber) + Fiber.max_result_size]u8 align(@alignOf(Fib threads: Thread.List, detached: struct { mutex: std.Io.Mutex, - list: std.DoublyLinkedList(void), + list: std.DoublyLinkedList, }, /// Empirically saw >128KB being used by the self-hosted backend to panic. @@ -226,7 +226,6 @@ pub fn deinit(el: *EventLoop) void { detached.detached_queue_node = .{ .prev = &detached.detached_queue_node, .next = &detached.detached_queue_node, - .data = {}, }; break :detached_future @ptrCast(detached.fiber); }, &.{}, .@"1"); @@ -753,7 +752,7 @@ const DetachedClosure = struct { event_loop: *EventLoop, fiber: *Fiber, start: *const fn (context: *const anyopaque) void, - detached_queue_node: std.DoublyLinkedList(void).Node, + detached_queue_node: std.DoublyLinkedList.Node, fn contextPointer(closure: *DetachedClosure) [*]align(Fiber.max_context_align.toByteUnits()) u8 { return @alignCast(@as([*]u8, @ptrCast(closure)) + @sizeOf(DetachedClosure)); @@ -818,7 +817,7 @@ fn go( .event_loop = event_loop, .fiber = fiber, .start = start, - .detached_queue_node = .{ .data = {} }, + .detached_queue_node = .{}, }; { event_loop.detached.mutex.lock(event_loop.io()) catch |err| switch (err) { |
