wasm-micro-runtime/core/shared/platform
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
..
alios Add check for code section size, fix interp float operations (#1480) 2022-09-14 19:49:18 +08:00
android Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
common posix_thread.c: Avoid sem_getvalue deprecation warning on macOS (#1596) 2022-10-17 10:18:54 +08:00
darwin Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
esp-idf Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
include Suppress the warnings when building with GCC11 (#1622) 2022-10-20 21:26:57 +08:00
linux Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
linux-sgx Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
nuttx Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
riot Add check for code section size, fix interp float operations (#1480) 2022-09-14 19:49:18 +08:00
rt-thread Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +08:00
vxworks Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
windows Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
zephyr Add check for code section size, fix interp float operations (#1480) 2022-09-14 19:49:18 +08:00
README.md re-org platform APIs, simplify porting process (#201) 2020-03-16 16:43:57 +08:00

This folder contains the platform abstract layer for multiple platforms. To support a new platform, you can simply create a new folder here and implement all the APIs defined in include folder.

Refer to port_wamr.md for how to port WAMR to a target platform.