(fp: FramePtr)
| 357 | /// The pointed-to frame must remain alive until the matching pop. |
| 358 | #[cfg(feature = "threading")] |
| 359 | pub 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. |
no test coverage detected