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

Function current_thread_id

crates/stdlib/src/multiprocessing.rs:1145–1147  ·  view source on GitHub ↗

Get current thread identifier. PyThread_get_thread_ident on Unix (pthread_self).

()

Source from the content-addressed store, hash-verified

1143 /// Get current thread identifier.
1144 /// PyThread_get_thread_ident on Unix (pthread_self).
1145 fn current_thread_id() -> u64 {
1146 unsafe { libc::pthread_self() as u64 }
1147 }
1148}
1149
1150#[cfg(all(not(unix), not(windows)))]

Callers 1

acquireMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected