Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ current_thread_id
Function
current_thread_id
crates/stdlib/src/faulthandler.rs:206–208 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
204
/// Get current thread ID
205
#[cfg(unix)]
206
fn current_thread_id() -> u64 {
207
unsafe { libc::pthread_self() as u64 }
208
}
209
210
#[cfg(windows)]
211
fn current_thread_id() -> u64 {
Callers
3
faulthandler_dump_traceback
Function · 0.70
dump_all_threads
Function · 0.70
watchdog_thread
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected