MCPcopy 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

dump_all_threadsFunction · 0.70
watchdog_threadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected