pub fn thread_exit(
ctx: FunctionEnvMut<'_, WasiEnv>,
_exitcode: u32,
) -> 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.