authorgravatar for s1712180@ed.ac.ukangus <s1712180@ed.ac.uk> 2026-02-07 14:19:29+00:00
committergravatar for s1712180@ed.ac.ukangus <s1712180@ed.ac.uk> 2026-02-07 14:19:29+00:00
log703df73f389dae88776caa3a0a026eb8acc7d8f4
treef0a4b0373b640086cab7f128fd345c6cc272742e
parentb5bd4946067d3796855e0b4b12219dfc28e15e8f

initialize mutex correctly in kqueue.zig


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

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