pub fn exit_current_thread(code: i32) -> !
Core of SYS_THREAD_EXIT and /thread/exit.
SYS_THREAD_EXIT
/thread/exit
Terminates only the calling thread; never returns.