aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorLucas Santos <lucascarvalhosantos91@gmail.com>2024-07-21 17:25:28 -0300
committerAndrew Kelley <andrew@ziglang.org>2024-07-24 01:04:38 -0700
commit1e74904aa27da423bcfe804a9b06fe8c0a0620ba (patch)
treecab85d439844bdd9010cc67dd15be73904a388f3 /lib/std/Thread.zig
parentfa95c89a717f283215e9fd3ea0b8ebcd1599a69b (diff)
downloadzig-1e74904aa27da423bcfe804a9b06fe8c0a0620ba.tar.gz
zig-1e74904aa27da423bcfe804a9b06fe8c0a0620ba.zip
Replace some dynamic functions with static ones.
PR [19271](https://github.com/ziglang/zig/pull/19271) added some static function implementations from kernel32, but some parts of the library still used the dynamically loaded versions.
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index b3bb79db59..c3802cc1fe 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -484,7 +484,7 @@ const WindowsThreadImpl = struct {
pub const ThreadHandle = windows.HANDLE;
fn getCurrentId() windows.DWORD {
- return windows.kernel32.GetCurrentThreadId();
+ return windows.GetCurrentThreadId();
}
fn getCpuCount() !usize {