From 415c2996a291267781b3d65929a81273f31c4b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gr=C3=A9goire?= Date: Wed, 1 Jul 2026 13:01:42 -0400 Subject: [PATCH] ex: clear workqueue enqueued field before running the function --- src/ex/workqueue.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ex/workqueue.zig b/src/ex/workqueue.zig index 7ba42c0..64b7aa1 100644 --- a/src/ex/workqueue.zig +++ b/src/ex/workqueue.zig @@ -111,9 +111,8 @@ fn work_loop(p: ?*anyopaque) void { const item = pool.queue.remove(); const work: *WorkItem = @fieldParentPtr("link", item); - work.func(work.arg); - work.enqueued.store(false, .release); + work.func(work.arg); } }