aboutsummaryrefslogtreecommitdiff
path: root/src/ThreadPool.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-12-12 15:32:37 +0200
committerVeikka Tuominen <git@vexu.eu>2022-12-13 13:14:20 +0200
commit08b2d491bcd8c79c68495267cc71967661caea1e (patch)
treef6c8436094170f3dd197ffec479aec575c875d19 /src/ThreadPool.zig
parent7b2a936173165002105ba5e76bed69654e132fea (diff)
downloadzig-08b2d491bcd8c79c68495267cc71967661caea1e.tar.gz
zig-08b2d491bcd8c79c68495267cc71967661caea1e.zip
update usages of `@call`
Diffstat (limited to 'src/ThreadPool.zig')
-rw-r--r--src/ThreadPool.zig4
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;