wasmedge_sys::ffi

Function WasmEdge_VMCleanup

Source
pub unsafe extern "C" fn WasmEdge_VMCleanup(
    Cxt: *mut WasmEdge_VMContext,
)
Expand description

Reset of WasmEdge_VMContext.

After calling this function, the statistics, loaded module, the instantiated instances, and the registered instances except the WASI and plug-ins will all be cleared.

This function is thread-safe.

\param Cxt the WasmEdge_VMContext to reset.