wasm-micro-runtime/core/iwasm/common
YAMAMOTO Takashi 6c846acc59
Implement module instance context APIs (#2436)
Introduce module instance context APIs which can set one or more contexts created
by the embedder for a wasm module instance:
```C
    wasm_runtime_create_context_key
    wasm_runtime_destroy_context_key
    wasm_runtime_set_context
    wasm_runtime_set_context_spread
    wasm_runtime_get_context
```

And make libc-wasi use it and set wasi context as the first context bound to the wasm
module instance.

Also add samples.

Refer to https://github.com/bytecodealliance/wasm-micro-runtime/issues/2460.
2023-09-07 14:54:11 +08:00
..
arch Add support for universal binaries on OSX (#2060) 2023-03-30 09:53:07 +08:00
iwasm_common.cmake Add support for universal binaries on OSX (#2060) 2023-03-30 09:53:07 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00
wasm_application.c Use pre-created exec_env for instantiation and module_malloc/free (#2047) 2023-03-23 19:19:47 +08:00
wasm_c_api_internal.h wasm-c-api: Fix init/destroy thread env multiple times issue (#1766) 2022-12-05 11:16:14 +08:00
wasm_c_api.c Fix duplicate vector init in wasm_module_validate (#2498) 2023-08-23 12:35:46 +08:00
wasm_exec_env.c Fix multi-threading issues (#2013) 2023-03-08 10:57:22 +08:00
wasm_exec_env.h Implement suspend flags as atomic variable (#2361) 2023-07-21 08:27:09 +08:00
wasm_memory.c Add callback to handle memory.grow failures (#2522) 2023-09-05 16:41:52 +08:00
wasm_memory.h Add callback to handle memory.grow failures (#2522) 2023-09-05 16:41:52 +08:00
wasm_native.c Implement module instance context APIs (#2436) 2023-09-07 14:54:11 +08:00
wasm_native.h Implement module instance context APIs (#2436) 2023-09-07 14:54:11 +08:00
wasm_runtime_common.c Implement module instance context APIs (#2436) 2023-09-07 14:54:11 +08:00
wasm_runtime_common.h Implement module instance context APIs (#2436) 2023-09-07 14:54:11 +08:00
wasm_shared_memory.c Fix memory sharing (#2415) 2023-08-04 10:18:13 +08:00
wasm_shared_memory.h Fix memory sharing (#2415) 2023-08-04 10:18:13 +08:00
wasm_suspend_flags.h Move generic parts of wasm_suspend_flags.h to bh_atomic.h (#2393) 2023-07-27 21:37:23 +08:00