diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-03-19 12:27:20 +0100 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-03-30 20:50:48 -0400 |
| commit | e409afb79bcadeabd2d5d4cc3cd5dcc54a964e94 (patch) | |
| tree | d09f9cc93ce8c44e5769e9124a0bd488a257345e /lib/std/Thread | |
| parent | 9b2345e182090e2f4c57e7684ec9739f195fdb1d (diff) | |
| download | zig-e409afb79bcadeabd2d5d4cc3cd5dcc54a964e94.tar.gz zig-e409afb79bcadeabd2d5d4cc3cd5dcc54a964e94.zip | |
Update uses of `@fieldParentPtr` to pass a pointer type
Diffstat (limited to 'lib/std/Thread')
| -rw-r--r-- | lib/std/Thread/Pool.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Thread/Pool.zig b/lib/std/Thread/Pool.zig index 3694f94be4..9f386c8e65 100644 --- a/lib/std/Thread/Pool.zig +++ b/lib/std/Thread/Pool.zig @@ -88,8 +88,8 @@ pub fn spawn(pool: *Pool, comptime func: anytype, args: anytype) !void { run_node: RunQueue.Node = .{ .data = .{ .runFn = runFn } }, fn runFn(runnable: *Runnable) void { - const run_node = @fieldParentPtr(RunQueue.Node, "data", runnable); - const closure = @fieldParentPtr(@This(), "run_node", run_node); + const run_node = @fieldParentPtr(*RunQueue.Node, "data", runnable); + const closure = @fieldParentPtr(*@This(), "run_node", run_node); @call(.auto, func, closure.arguments); // The thread pool's allocator is protected by the mutex. |
