aboutsummaryrefslogtreecommitdiff
path: root/src/ThreadPool.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/ThreadPool.zig')
-rw-r--r--src/ThreadPool.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ThreadPool.zig b/src/ThreadPool.zig
index 230608df4b..18818c7d9d 100644
--- a/src/ThreadPool.zig
+++ b/src/ThreadPool.zig
@@ -60,7 +60,7 @@ pub fn init(self: *ThreadPool, allocator: *std.mem.Allocator) !void {
if (std.builtin.single_threaded)
return;
- const worker_count = std.math.max(1, std.Thread.cpuCount() catch 1);
+ const worker_count = std.math.max(1, std.Thread.getCpuCount() catch 1);
self.workers = try allocator.alloc(Worker, worker_count);
errdefer allocator.free(self.workers);