aboutsummaryrefslogtreecommitdiff
path: root/lib/std/event/loop.zig
diff options
context:
space:
mode:
authorkprotty <kbutcher6200@gmail.com>2021-06-19 21:50:34 -0500
committerkprotty <kbutcher6200@gmail.com>2021-06-30 21:48:59 -0500
commit3a276be1355fe304c177bcc13a7896122801e5f2 (patch)
treebe3cb9210d4cb152403ca031f4565ed973fe086b /lib/std/event/loop.zig
parent0a1def7833882249563358f262e2210beb77492a (diff)
downloadzig-3a276be1355fe304c177bcc13a7896122801e5f2.tar.gz
zig-3a276be1355fe304c177bcc13a7896122801e5f2.zip
std.Thread.getCpuCount(): fix usages
Diffstat (limited to 'lib/std/event/loop.zig')
-rw-r--r--lib/std/event/loop.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig
index 87d84acba6..26cbf3b988 100644
--- a/lib/std/event/loop.zig
+++ b/lib/std/event/loop.zig
@@ -137,7 +137,7 @@ pub const Loop = struct {
}
/// After initialization, call run().
- /// This is the same as `initThreadPool` using `Thread.cpuCount` to determine the thread
+ /// This is the same as `initThreadPool` using `Thread.getCpuCount` to determine the thread
/// pool size.
/// TODO copy elision / named return values so that the threads referencing *Loop
/// have the correct pointer value.
@@ -145,7 +145,7 @@ pub const Loop = struct {
pub fn initMultiThreaded(self: *Loop) !void {
if (builtin.single_threaded)
@compileError("initMultiThreaded unavailable when building in single-threaded mode");
- const core_count = try Thread.cpuCount();
+ const core_count = try Thread.getCpuCount();
return self.initThreadPool(core_count);
}