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 {
206206 pub const ThreadHandle = windows.HANDLE;
207207
208208 fn getCurrentId() u64 {
209 return windows.kernel.GetCurrentThreadId();
209 return windows.kernel32.GetCurrentThreadId();
210210 }
211211
212212 fn getCpuCount() !usize {
......@@ -266,7 +266,7 @@ const WindowsThreadImpl = struct {
266266 var stack_size = std.math.cast(u32, config.stack_size) catch std.math.maxInt(u32);
267267 stack_size = std.math.max(64 * 1024, stack_size);
268268
269 instance.thread.thread_handle = windows.CreateThread(
269 instance.thread.thread_handle = windows.kernel32.CreateThread(
270270 null,
271271 stack_size,
272272 Instance.entry,
......@@ -406,7 +406,7 @@ const PosixThreadImpl = struct {
406406 os.EAGAIN => error.SystemResources,
407407 os.EPERM => unreachable,
408408 os.EINVAL => unreachable,
409 else => os.unexpectedErrno(err),
409 else => |err| os.unexpectedErrno(err),
410410 };
411411 }
412412