| ... | @@ -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 } }, |
| 225 | | 225 | |
| 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); |