We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GetThreadId
GetCurrentThread
GetCurrentThreadId
1 parent be00ea1 commit f57e125Copy full SHA for f57e125
library/std/src/sys/pal/windows/thread.rs
@@ -129,7 +129,7 @@ impl Thread {
129
130
pub(crate) fn current_os_id() -> Option<u64> {
131
// SAFETY: FFI call with no preconditions.
132
- let id: u32 = unsafe { c::GetThreadId(c::GetCurrentThread()) };
+ let id: u32 = unsafe { c::GetCurrentThreadId() };
133
134
// A return value of 0 indicates failed lookup.
135
if id == 0 { None } else { Some(id.into()) }
0 commit comments