ex: clear workqueue enqueued field before running the function

This commit is contained in:
Loïc Grégoire
2026-07-01 13:01:42 -04:00
parent 85e6a8fec9
commit 415c2996a2
+1 -2
View File
@@ -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);
}
}