diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-12-13 18:15:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-13 18:15:18 -0500 |
| commit | 6378644d4ea561a79edf44056609681e6d1438d1 (patch) | |
| tree | 84094f36ee3dd9e3befaf33a5a7da82fc5388da7 /src/ThreadPool.zig | |
| parent | 65270cdc3345e9840427179168a09ef6e4dd34b9 (diff) | |
| parent | 51ed5416ab2969a366c8c6bdc487f357bad267c3 (diff) | |
| download | zig-6378644d4ea561a79edf44056609681e6d1438d1.tar.gz zig-6378644d4ea561a79edf44056609681e6d1438d1.zip | |
Merge pull request #13907 from Vexu/call-merge
Remove `stack` option from `@call`
Diffstat (limited to 'src/ThreadPool.zig')
| -rw-r--r-- | src/ThreadPool.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ThreadPool.zig b/src/ThreadPool.zig index 980bacf94f..fde5ed27db 100644 --- a/src/ThreadPool.zig +++ b/src/ThreadPool.zig @@ -71,7 +71,7 @@ fn join(pool: *ThreadPool, spawned: usize) void { pub fn spawn(pool: *ThreadPool, comptime func: anytype, args: anytype) !void { if (builtin.single_threaded) { - @call(.{}, func, args); + @call(.auto, func, args); return; } @@ -84,7 +84,7 @@ pub fn spawn(pool: *ThreadPool, comptime func: anytype, args: anytype) !void { fn runFn(runnable: *Runnable) void { const run_node = @fieldParentPtr(RunQueue.Node, "data", runnable); const closure = @fieldParentPtr(@This(), "run_node", run_node); - @call(.{}, func, closure.arguments); + @call(.auto, func, closure.arguments); // The thread pool's allocator is protected by the mutex. const mutex = &closure.pool.mutex; |
