wamr_sys

Function wasm_runtime_get_exec_env_singleton

Source
pub unsafe extern "C" fn wasm_runtime_get_exec_env_singleton(
    module_inst: wasm_module_inst_t,
) -> wasm_exec_env_t
Expand description

Get the singleton execution environment for the instance.

Note: The singleton execution environment is the execution environment used internally by the runtime for the API functions like wasm_application_execute_main, which don’t take explicit execution environment. It’s associated to the corresponding module instance and managed by the runtime. The API user should not destroy it with wasm_runtime_destroy_exec_env.

@param module_inst the module instance

@return exec_env the execution environment to destroy