Skip to main content

WasmEdge_VMGetExecutorContext

Function WasmEdge_VMGetExecutorContext 

Source
pub unsafe extern "C" fn WasmEdge_VMGetExecutorContext(
    Cxt: *mut WasmEdge_VMContext,
) -> *mut WasmEdge_ExecutorContext
Expand description

Get the executor context used in the WasmEdge_VMContext.

The returned executor context links to the executor in the VM context and is owned by the VM context. This function will return NULL if an error occurs. The caller should NOT call the WasmEdge_ExecutorDelete.

This function is thread-safe.

\param Cxt the WasmEdge_VMContext.

\returns pointer to the executor context.