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

Function push_thread_frame

crates/vm/src/vm/thread.rs:359–370  ·  view source on GitHub ↗
(fp: FramePtr)

Source from the content-addressed store, hash-verified

357/// The pointed-to frame must remain alive until the matching pop.
358#[cfg(feature = "threading")]
359pub fn push_thread_frame(fp: FramePtr) {
360 CURRENT_THREAD_SLOT.with(|slot| {
361 if let Some(s) = slot.borrow().as_ref() {
362 s.frames.lock().push(fp);
363 } else {
364 debug_assert!(
365 false,
366 "push_thread_frame called without initialized thread slot"
367 );
368 }
369 });
370}
371
372/// Pop a frame from the current thread's shared frame stack.
373/// Called when a frame is exited.

Callers 2

with_frame_implMethod · 0.85
resume_gen_frameMethod · 0.85

Calls 5

withMethod · 0.80
as_refMethod · 0.45
borrowMethod · 0.45
pushMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected