Function switch_context

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn switch_context(
    from: *mut ThreadContext,
    to: *const ThreadContext,
)
Expand description

ยงSafety

This function performs low-level context switching between threads. Caller must ensure valid ThreadContext pointers and proper thread state.