wamr_sys

Function wasm_runtime_set_custom_data

Source
pub unsafe extern "C" fn wasm_runtime_set_custom_data(
    module_inst: wasm_module_inst_t,
    custom_data: *mut c_void,
)
Expand description

Set custom data to WASM module instance. Note: If WAMR_BUILD_LIB_PTHREAD is enabled, this API will spread the custom data to all threads

@param module_inst the WASM module instance @param custom_data the custom data to be set