MCPcopy Index your code
hub / github.com/RustPython/RustPython / current_thread_id

Function current_thread_id

crates/vm/src/stdlib/_thread.rs:431–434  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

429 /// This is important for fork compatibility - the ID must remain stable after fork
430 #[cfg(unix)]
431 fn current_thread_id() -> u64 {
432 // pthread_self() for fork compatibility
433 unsafe { libc::pthread_self() as u64 }
434 }
435
436 #[cfg(not(unix))]
437 fn current_thread_id() -> u64 {

Callers 2

_release_saveMethod · 0.70
get_identFunction · 0.70

Calls 1

thread_to_rust_idFunction · 0.85

Tested by

no test coverage detected