| ... | @@ -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; |
| 207 | | 207 | |
| 208 | fn getCurrentId() u64 { | 208 | fn getCurrentId() u64 { |
| 209 | return windows.kernel.GetCurrentThreadId(); | 209 | return windows.kernel32.GetCurrentThreadId(); |
| 210 | } | 210 | } |
| 211 | | 211 | |
| 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 | } |
| 412 | | 412 | |