wasm-micro-runtime/core/shared/platform/vxworks
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
..
platform_init.c Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
platform_internal.h Add mutex initializer for wasm-c-api engine operations (#1656) 2022-10-31 11:48:07 +08:00
shared_platform.cmake re-org platform APIs, simplify porting process (#201) 2020-03-16 16:43:57 +08:00