Function release_and_exit_current_thread

Source
pub unsafe fn release_and_exit_current_thread(exit_status: i32) -> !
Expand description

Release this thread’s shim thread local storage and exit the thread.

Should be called by every thread that accesses thread local storage.

Panics if there are still any live references to this thread’s ShimTlsVars.

§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.