wasm-micro-runtime/core/shared/platform
Wenyong Huang 49d439a3bc
Fix/Simplify the atomic.wait/nofity implementations (#2044)
Use the shared memory's shared_mem_lock to lock the whole atomic.wait and
atomic.notify processes, and use it for os_cond_reltimedwait and os_cond_notify,
so as to make the whole processes actual atomic operations:
the original implementation accesses the wait address with shared_mem_lock
and uses wait_node->wait_lock for os_cond_reltimedwait, which is not an atomic
operation.

And remove the unnecessary wait_map_lock and wait_lock, since the whole
processes are already locked by shared_mem_lock.
2023-03-23 09:21:16 +08:00
..
alios Add bh_print_proc_mem() to dump memory info of current process (#1734) 2022-11-25 08:33:44 +08:00
android Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
common Fix os_socket_addr_resolve() for IPv6 (#2015) 2023-03-08 07:08:12 +08:00
darwin Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
ego Make a workaround for EGO when fstat returns NOT_SUPPORT (#1970) 2023-02-21 11:11:27 +08:00
esp-idf Fix explicit casts and types in espidf_socket.c (#1945) 2023-02-09 09:34:26 +08:00
freebsd Port WAMR to the FreeBSD platform and update the document (#1825) 2022-12-24 10:11:10 +08:00
include Fix/Simplify the atomic.wait/nofity implementations (#2044) 2023-03-23 09:21:16 +08:00
linux Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
linux-sgx Fix/Simplify the atomic.wait/nofity implementations (#2044) 2023-03-23 09:21:16 +08:00
nuttx nuttx: Add missing pthread.h header (#2009) 2023-03-07 22:01:16 +08:00
riot Add bh_print_proc_mem() to dump memory info of current process (#1734) 2022-11-25 08:33:44 +08:00
rt-thread Add bh_print_proc_mem() to dump memory info of current process (#1734) 2022-11-25 08:33:44 +08:00
vxworks Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
windows Fix multi-threading issues (#2013) 2023-03-08 10:57:22 +08:00
zephyr Fix zephyr sample build errors (#1757) 2022-11-28 11:23:51 +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.