wasm-micro-runtime/core/iwasm/libraries/lib-pthread
Christof Petig 5a23ae465c
Fix three multi-threading and wasm-c-api-imports issues (#2173)
Fix issue reported in #2172: wasm-c-api `wasm_func_call` may use a wrong exec_env
when multi-threading is enabled, with error "invalid exec env" reported

Fix issue reported in #2149: main instance's `c_api_func_imports` are not passed to
the counterpart of new thread's instance in wasi-threads mode

Fix issue of invalid size calculated to copy `c_api_func_imports` in pthread mode

And refactor the code to use `wasm_cluster_dup_c_api_imports` to copy the
`c_api_func_imports` to new thread for wasi-threads mode and pthread mode.
2023-05-05 10:01:58 +08:00
..
lib_pthread_wrapper.c Fix three multi-threading and wasm-c-api-imports issues (#2173) 2023-05-05 10:01:58 +08:00
lib_pthread.cmake Implement POSIX semaphore support for linux platform (#1345) 2022-08-08 19:59:46 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00