| ... | ... | @@ -206,7 +206,7 @@ const WindowsThreadImpl = struct { |
| 206 | 206 | pub const ThreadHandle = windows.HANDLE; |
| 207 | 207 | |
| 208 | 208 | fn getCurrentId() u64 { |
| 209 | | return windows.kernel.GetCurrentThreadId(); |
| 209 | return windows.kernel32.GetCurrentThreadId(); |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | fn getCpuCount() !usize { |
| ... | ... | @@ -266,7 +266,7 @@ const WindowsThreadImpl = struct { |
| 266 | 266 | var stack_size = std.math.cast(u32, config.stack_size) catch std.math.maxInt(u32); |
| 267 | 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 | 270 | null, |
| 271 | 271 | stack_size, |
| 272 | 272 | Instance.entry, |
| ... | ... | @@ -406,7 +406,7 @@ const PosixThreadImpl = struct { |
| 406 | 406 | os.EAGAIN => error.SystemResources, |
| 407 | 407 | os.EPERM => unreachable, |
| 408 | 408 | os.EINVAL => unreachable, |
| 409 | | else => os.unexpectedErrno(err), |
| 409 | else => |err| os.unexpectedErrno(err), |
| 410 | 410 | }; |
| 411 | 411 | } |
| 412 | 412 | |