Exit the current thread. Never returns.
()
| 213 | |
| 214 | /// Exit the current thread. Never returns. |
| 215 | pub fn thread_exit() -> ! { |
| 216 | unsafe { |
| 217 | asm!("syscall", |
| 218 | in("rax") SYSCALL_EXIT_THREAD, |
| 219 | options(noreturn)); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | /// Gives up the processor for another thread to run. |
| 224 | /// |