Function wasmer_wasix::syscalls::wasix::thread_exit::thread_exit
source · pub fn thread_exit(
ctx: FunctionEnvMut<'_, WasiEnv>,
_exitcode: ExitCode,
) -> Result<(), WasiError>
Expand description
§thread_exit()
Terminates the current running thread, if this is the last thread then the process will also exit with code 0. The exit code parameter is a left over from a previous version of this syscall, maintained here to keep the syscall backwards-compatible, but is otherwise unused.
This syscall does not return.