Function context_create

Source
pub fn context_create<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    new_context_ptr: WasmPtr<u64, M>,
    entrypoint: u32,
) -> Result<Errno, WasiError>
Expand description

Create a new context.

Creates a new context in the suspended state. On its first resumption, entrypoint is invoked within that context.

Refer to the wasix-libc wasix/context.h header for authoritative documentation.