Initialize the main thread ident. Should be called once at interpreter startup.
(vm: &VirtualMachine)
| 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 |
no test coverage detected