wasm-micro-runtime/core/iwasm
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
..
aot Suppress the warnings when building with GCC11 (#1622) 2022-10-20 21:26:57 +08:00
common Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
compilation Implement Fast JIT dump call stack and perf profiling (#1633) 2022-10-27 09:28:32 +08:00
fast-jit Implement Fast JIT dump call stack and perf profiling (#1633) 2022-10-27 09:28:32 +08:00
include Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
interpreter Fix a bug of the return value of memory_instantiate (#1616) 2022-10-19 07:23:03 +08:00
libraries Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +08:00
README.md Enable AoT and wamr-sdk, and change arguments of call wasm API (#157) 2020-01-21 13:26:14 +08:00