zig

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

commit 6446596ba106f7ec528eab3ac64e8f3dba5dfd4f (tree)
parent b3b923e51f53330403bd99a224c19bc3f01005c4
Author: mochalins <117967760+mochalins@users.noreply.github.com>
Date:   Tue,  9 Jul 2024 10:48:16 +0900

fix: Update `spawn`'s' `runFn` signature

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

diff --git a/lib/std/Thread/Pool.zig b/lib/std/Thread/Pool.zig @@ -223,7 +223,7 @@ pub fn spawn(pool: *Pool, comptime func: anytype, args: anytype) !void { pool: *Pool, run_node: RunQueue.Node = .{ .data = .{ .runFn = runFn } }, - fn runFn(runnable: *Runnable) void { + fn runFn(runnable: *Runnable, _: ?usize) void { const run_node: *RunQueue.Node = @fieldParentPtr("data", runnable); const closure: *@This() = @alignCast(@fieldParentPtr("run_node", run_node)); @call(.auto, func, closure.arguments);