authorgravatar for kbutcher6200@gmail.comkprotty <kbutcher6200@gmail.com> 2021-06-20 17:12:28-05:00
committergravatar for kbutcher6200@gmail.comkprotty <kbutcher6200@gmail.com> 2021-06-30 21:49:00-05:00
logb1f37b4eade8bf5bc63ee048ebdb83c584dbe0ed
tree76a9792283ff11f2df7aa231aee27ef7838da07a
parentd016caaccba8ae9372c56d2a47e21f36cc2f4d83

std.Thread: uh more typo fixes


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/Thread.zig+3-3
...@@ -206,7 +206,7 @@ const WindowsThreadImpl = struct {...@@ -206,7 +206,7 @@ const WindowsThreadImpl = struct {
206 pub const ThreadHandle = windows.HANDLE;206 pub const ThreadHandle = windows.HANDLE;
207207
208 fn getCurrentId() u64 {208 fn getCurrentId() u64 {
209 return windows.kernel.GetCurrentThreadId();209 return windows.kernel32.GetCurrentThreadId();
210 }210 }
211211
212 fn getCpuCount() !usize {212 fn getCpuCount() !usize {
...@@ -266,7 +266,7 @@ const WindowsThreadImpl = struct {...@@ -266,7 +266,7 @@ const WindowsThreadImpl = struct {
266 var stack_size = std.math.cast(u32, config.stack_size) catch std.math.maxInt(u32);266 var stack_size = std.math.cast(u32, config.stack_size) catch std.math.maxInt(u32);
267 stack_size = std.math.max(64 * 1024, stack_size);267 stack_size = std.math.max(64 * 1024, stack_size);
268 268
269 instance.thread.thread_handle = windows.CreateThread(269 instance.thread.thread_handle = windows.kernel32.CreateThread(
270 null, 270 null,
271 stack_size, 271 stack_size,
272 Instance.entry, 272 Instance.entry,
...@@ -406,7 +406,7 @@ const PosixThreadImpl = struct {...@@ -406,7 +406,7 @@ const PosixThreadImpl = struct {
406 os.EAGAIN => error.SystemResources,406 os.EAGAIN => error.SystemResources,
407 os.EPERM => unreachable,407 os.EPERM => unreachable,
408 os.EINVAL => unreachable,408 os.EINVAL => unreachable,
409 else => os.unexpectedErrno(err),409 else => |err| os.unexpectedErrno(err),
410 };410 };
411 }411 }
412412