wasmer_wasix::syscalls::wasix::thread_id

Function 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)