Function wasix::thread_exit
source · pub unsafe fn thread_exit(rval: Exitcode)Expand description
Terminates the current running thread, if this is the last thread then the process will also exit with the specified exit code. An exit code of 0 indicates successful termination of the thread. The meanings of other values is dependent on the environment.
Parameters
rval- The exit code returned by the process.