From c91a2a4a0b08a87a3205961b268dd1f69f96448b Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 19 Dec 2023 12:31:34 +0500 Subject: [PATCH] just the wait+change no longer works for some reason? switched to wake, somehow better performance --- src/threads.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/threads.zig b/src/threads.zig index a96a84b..84f1f44 100644 --- a/src/threads.zig +++ b/src/threads.zig @@ -89,6 +89,7 @@ pub const ThreadManager = struct { pub fn unblock(self: *Self) void { self.signals.eof_block.store(0, .Release); self.signals.processed.store(0, .Release); + std.Thread.Futex.wake(&self.signals.eof_block, @truncate(self.threads.items.len)); } };