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

Function init_main_thread_ident

crates/vm/src/stdlib/_thread.rs:752–755  ·  view source on GitHub ↗

Initialize the main thread ident. Should be called once at interpreter startup.

(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

750
751 /// Initialize the main thread ident. Should be called once at interpreter startup.
752 pub fn init_main_thread_ident(vm: &VirtualMachine) {
753 let ident = get_ident();
754 vm.state.main_thread_ident.store(ident);
755 }
756
757 /// ExceptHookArgs - simple class to hold exception hook arguments
758 /// This allows threading.py to import _excepthook and _ExceptHookArgs from _thread

Callers 1

initializeMethod · 0.85

Calls 2

get_identFunction · 0.70
storeMethod · 0.45

Tested by

no test coverage detected