From 3a276be1355fe304c177bcc13a7896122801e5f2 Mon Sep 17 00:00:00 2001 From: kprotty Date: Sat, 19 Jun 2021 21:50:34 -0500 Subject: std.Thread.getCpuCount(): fix usages --- src/ThreadPool.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ThreadPool.zig') 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); -- cgit v1.2.3