wasm-micro-runtime/core/shared/platform/linux-sgx
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
..
untrusted linux-sgx: Allow to open files with arbitrary paths in the sandbox using IPFS (#1685) 2022-11-07 19:56:16 +08:00
platform_internal.h Fix/Simplify the atomic.wait/nofity implementations (#2044) 2023-03-23 09:21:16 +08:00
sgx_file.c linux-sgx: Allow to open files with arbitrary paths in the sandbox using IPFS (#1685) 2022-11-07 19:56:16 +08:00
sgx_file.h linux-sgx: Allow to open files with arbitrary paths in the sandbox using IPFS (#1685) 2022-11-07 19:56:16 +08:00
sgx_ipfs.c SGX IPFS: Fix a segfault and support seeking beyond the end of files while using SEEK_CUR/SEEK_END (#1916) 2023-01-30 08:24:12 +08:00
sgx_ipfs.h linux-sgx: Allow to open files with arbitrary paths in the sandbox using IPFS (#1685) 2022-11-07 19:56:16 +08:00
sgx_platform.c Add bh_print_proc_mem() to dump memory info of current process (#1734) 2022-11-25 08:33:44 +08:00
sgx_pthread.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_pthread.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_rsrv_mem_mngr.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_signal.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_signal.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_socket.c esp-idf: Add socket support for esp-idf platform (#1364) 2022-11-02 18:02:58 +08:00
sgx_socket.h esp-idf: Add socket support for esp-idf platform (#1364) 2022-11-02 18:02:58 +08:00
sgx_thread.c Implement pthread_cond_broadcast wrapper for lib-pthread (#982) 2022-01-25 09:28:02 +08:00
sgx_time.c Implement os_time_get_boot_microsecond() for sgx platform (#818) 2021-11-06 15:58:21 +08:00
sgx_time.h Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
sgx_wamr.edl linux-sgx: Allow to open files with arbitrary paths in the sandbox using IPFS (#1685) 2022-11-07 19:56:16 +08:00
shared_platform.cmake Add macro to exclude sgx wasi/pthread ocalls if not needed (#384) 2020-09-15 15:49:09 +08:00