Function shim_release_and_exit_current_thread

Source
#[unsafe(no_mangle)]
pub unsafe extern "C-unwind" fn shim_release_and_exit_current_thread(
    status: i32,
)
Expand description

Should be used to exit every thread in the shim.

§Safety

In the case that this function somehow panics, caller must not access thread local storage again from the current thread, e.g. using std::panic::catch_unwind or a custom panic hook.