wasm-micro-runtime/core/iwasm/common
Wenyong Huang 0f5b73ae67
Add mutex initializer for wasm-c-api engine operations (#1656)
The host embedder may new/delete wasm-c-api engine simultaneously
in multiple threads, which requires lock for the operations. Since there
isn't one time called global init/destroy APIs provided by wasm-c-api,
we define a global lock and initialize it with thread mutex initializer if
the platform supports that, and use it to lock the operations of engine.

If the platform doesn't support thread mutex initializer, we require
developer to create the lock by himself to ensure the thread-safe of the
engine operations.
2022-10-31 11:48:07 +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 multi-module and some other issues (#1435) 2022-08-31 17:38:38 +08:00
wasm_c_api_internal.h Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
wasm_c_api.c Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
wasm_exec_env.c Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +08:00
wasm_exec_env.h Import WAMR Fast JIT (#1343) 2022-08-02 16:03:50 +08:00
wasm_memory.c Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +08:00
wasm_memory.h Enlarge max pool size and fix bh_memcpy_s dest max size check (#1151) 2022-05-07 16:09:16 +08:00
wasm_native.c Add wasm_runtime_unregister_natives (#1647) 2022-10-28 11:03:39 +08:00
wasm_native.h Add wasm_runtime_unregister_natives (#1647) 2022-10-28 11:03:39 +08:00
wasm_runtime_common.c Add wasm_runtime_unregister_natives (#1647) 2022-10-28 11:03:39 +08:00
wasm_runtime_common.h Add wasm_runtime_unregister_natives (#1647) 2022-10-28 11:03:39 +08:00
wasm_shared_memory.c Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +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