wasm-micro-runtime/core/iwasm/common
lucianoiam f8ee05db4b
Add a reference counter to wasm_engine_t (#1001)
This patch allows safer (note: safer, not safe) embedding in a plugin
environment where multiple instances of the engine could be needed.

Original code initializes and tears down the full runtime during
wasm_engine_new() and wasm_engine_delete() respectively. After this
update the C API implementation keeps track of engine instances count
and inits/deinits the runtime only when needed.

This allows for example to call wasm_engine_new() twice and then call
wasm_engine_delete() once without rendering the first engine instance
invalid.
2022-03-22 17:14:15 +08:00
..
arch Apply clang-format for more src files and update spec test script (#775) 2021-10-08 17:47:11 +08:00
iwasm_common.cmake Implement XIP feature and enable ARC target support (#694) 2021-08-12 17:44:39 +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 Fix debug thread not created issue (#983) 2022-01-26 09:56:01 +08:00
wasm_c_api_internal.h Add a reference counter to wasm_engine_t (#1001) 2022-03-22 17:14:15 +08:00
wasm_c_api.c Add a reference counter to wasm_engine_t (#1001) 2022-03-22 17:14:15 +08:00
wasm_exec_env.c [debugger enhance] don't block gdbserver thread while executing (#989) 2022-02-16 17:35:35 +08:00
wasm_exec_env.h Refactor externref related APIs of reference types feature (#971) 2022-01-19 11:25:08 +08:00
wasm_memory.c Apply clang-format for more src files and update spec test script (#775) 2021-10-08 17:47:11 +08:00
wasm_memory.h Apply clang-format for more src files and update spec test script (#775) 2021-10-08 17:47:11 +08:00
wasm_native.c Refactor externref related APIs of reference types feature (#971) 2022-01-19 11:25:08 +08:00
wasm_native.h Apply clang-format for more src files and update spec test script (#775) 2021-10-08 17:47:11 +08:00
wasm_runtime_common.c Implement part of Berkeley Socket API for libc-wasi (#1036) 2022-03-10 15:13:38 +08:00
wasm_runtime_common.h Implement part of Berkeley Socket API for libc-wasi (#1036) 2022-03-10 15:13:38 +08:00
wasm_shared_memory.c Use nanosecond for atomic wait (#1041) 2022-03-10 19:43:27 +08:00
wasm_shared_memory.h Apply clang-format for more src files and update spec test script (#775) 2021-10-08 17:47:11 +08:00