zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 703df73f389dae88776caa3a0a026eb8acc7d8f4 (tree)
parent b5bd4946067d3796855e0b4b12219dfc28e15e8f
Author: angus <s1712180@ed.ac.uk>
Date:   Sat,  7 Feb 2026 14:19:29 +0000

initialize mutex correctly in kqueue.zig

Diffstat:
Mlib/std/Io/Kqueue.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/Io/Kqueue.zig b/lib/std/Io/Kqueue.zig @@ -169,7 +169,7 @@ pub fn init(k: *Kqueue, gpa: Allocator, options: InitOptions) !void { errdefer gpa.free(allocated_slice); k.* = .{ .gpa = gpa, - .mutex = .{}, + .mutex = .init, .main_fiber_buffer = undefined, .threads = .{ .allocated = @ptrCast(allocated_slice[0..threads_size]),