Skip to content

Is there a way to convert a wasm_instance_t* to a wasm_module_inst_t? #4929

@sbwtw

Description

@sbwtw

I use the standard WASM C-API to create a wasm_instance_t*. However, when working with multi-threading, I discovered that it is necessary to create a corresponding execution environment (exec_env). The wasm_runtime_create_exec_env function requires a wasm_module_inst_t type. So, how can I create the exec_env from wasm_instance_t* (I hope to use private APIs as less as possible)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions