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)?
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). Thewasm_runtime_create_exec_envfunction requires awasm_module_inst_ttype. So, how can I create the exec_env from wasm_instance_t* (I hope to use private APIs as less as possible)?