wasm-micro-runtime/core/shared/platform/linux-sgx
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
..
untrusted linux-sgx: Implement socket API getpeername, recvfrom and sendto (#1556) 2022-10-06 21:32:33 +08:00
platform_internal.h Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
sgx_file.c linux-sgx: Implement SGX IPFS as POSIX backend for file interaction (#1489) 2022-09-28 13:09:58 +08:00
sgx_file.h Implement SGX getrandom/getentropy without ocall (#1176) 2022-05-21 12:21:09 +08:00
sgx_ipfs.c linux-sgx: Use non-destructive modes for opening files using SGX IPFS (#1645) 2022-10-27 12:21:30 +08:00
sgx_ipfs.h linux-sgx: Implement SGX IPFS as POSIX backend for file interaction (#1489) 2022-09-28 13:09:58 +08:00
sgx_platform.c linux-sgx: Implement SGX IPFS as POSIX backend for file interaction (#1489) 2022-09-28 13:09:58 +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 linux-sgx: Implement POSIX calls based on getsockname and set/getbooloption (#1574) 2022-10-12 09:57:01 +08:00
sgx_socket.h linux-sgx: Implement POSIX calls based on getsockname and set/getbooloption (#1574) 2022-10-12 09:57:01 +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: Implement socket API getpeername, recvfrom and sendto (#1556) 2022-10-06 21:32:33 +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