Function wasmer_wasix::syscalls::wasix::thread_id::thread_id

source ·
pub fn thread_id<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    ret_tid: WasmPtr<Tid, M>,
) -> Errno
Expand description

§thread_id()

Returns the index of the current thread (threads indices are sequencial from zero)