authorgravatar for 117967760+mochalins@users.noreply.github.commochalins <117967760+mochalins@users.noreply.github.com> 2024-07-09 10:48:16+09:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2024-07-09 21:15:29-04:00
log6446596ba106f7ec528eab3ac64e8f3dba5dfd4f
tree08f1c7d1ce4217086f7715efe96ec53c1447ea72
parentb3b923e51f53330403bd99a224c19bc3f01005c4

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


1 files changed, 1 insertions(+), 1 deletions(-)

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