aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkprotty <kbutcher6200@gmail.com>2021-06-20 17:12:28 -0500
committerkprotty <kbutcher6200@gmail.com>2021-06-30 21:49:00 -0500
commitb1f37b4eade8bf5bc63ee048ebdb83c584dbe0ed (patch)
tree76a9792283ff11f2df7aa231aee27ef7838da07a /lib
parentd016caaccba8ae9372c56d2a47e21f36cc2f4d83 (diff)
downloadzig-b1f37b4eade8bf5bc63ee048ebdb83c584dbe0ed.tar.gz
zig-b1f37b4eade8bf5bc63ee048ebdb83c584dbe0ed.zip
std.Thread: uh more typo fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/std/Thread.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index c5cf49929c..4644d5d831 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -206,7 +206,7 @@ const WindowsThreadImpl = struct {
pub const ThreadHandle = windows.HANDLE;
fn getCurrentId() u64 {
- return windows.kernel.GetCurrentThreadId();
+ return windows.kernel32.GetCurrentThreadId();
}
fn getCpuCount() !usize {
@@ -266,7 +266,7 @@ const WindowsThreadImpl = struct {
var stack_size = std.math.cast(u32, config.stack_size) catch std.math.maxInt(u32);
stack_size = std.math.max(64 * 1024, stack_size);
- instance.thread.thread_handle = windows.CreateThread(
+ instance.thread.thread_handle = windows.kernel32.CreateThread(
null,
stack_size,
Instance.entry,
@@ -406,7 +406,7 @@ const PosixThreadImpl = struct {
os.EAGAIN => error.SystemResources,
os.EPERM => unreachable,
os.EINVAL => unreachable,
- else => os.unexpectedErrno(err),
+ else => |err| os.unexpectedErrno(err),
};
}