Skip to main content

Module thread

Module thread 

Source

Functions§

allow_threads
No-op on non-threading builds.
attach_for_callback
No-op on non-threading builds.
current_vm_is_set
enter_vm
get_current_frame
Get the current thread’s top InterpreterFrame pointer. Used by faulthandler’s signal handler to start traceback walking.
set_current_frame
Set the current thread’s top InterpreterFrame pointer. Returns the previous pointer so it can be restored on pop.
set_current_frame_nosave
Lightweight version that only writes to TLS current_frame, returning the previous value. Does not update cross-thread top_frame (that’s updated by set_current_frame for FrameObject-based calls).
try_with_current_vm
with_current_vm
with_vm