diff options
| author | mochalins <117967760+mochalins@users.noreply.github.com> | 2024-07-09 10:48:16 +0900 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-09 21:15:29 -0400 |
| commit | 6446596ba106f7ec528eab3ac64e8f3dba5dfd4f (patch) | |
| tree | 08f1c7d1ce4217086f7715efe96ec53c1447ea72 /lib/std/Thread/Pool.zig | |
| parent | b3b923e51f53330403bd99a224c19bc3f01005c4 (diff) | |
| download | zig-6446596ba106f7ec528eab3ac64e8f3dba5dfd4f.tar.gz zig-6446596ba106f7ec528eab3ac64e8f3dba5dfd4f.zip | |
fix: Update `spawn`'s' `runFn` signature
Diffstat (limited to 'lib/std/Thread/Pool.zig')
| -rw-r--r-- | lib/std/Thread/Pool.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread/Pool.zig b/lib/std/Thread/Pool.zig index 179f2f8521..1a67b9735f 100644 --- 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); |
