pub fn sys_thread_exit(code: u64) -> !
Expand description

Exit the thread. The code will be written to the crate::thread::ThreadRepr for the current thread as part of updating the status and code to indicate thread has exited.