wasm-micro-runtime/core/iwasm/libraries/lib-wasi-threads
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
..
test Return error when exception was raised after main thread finishes (#2169) 2023-05-05 09:20:05 +08:00
lib_wasi_threads_wrapper.c Fix three multi-threading and wasm-c-api-imports issues (#2173) 2023-05-05 10:01:58 +08:00
lib_wasi_threads.cmake Reserve TID values for WASI threads (#1862) 2023-01-06 10:28:25 +08:00
tid_allocator.c Reserve TID values for WASI threads (#1862) 2023-01-06 10:28:25 +08:00
tid_allocator.h Reserve TID values for WASI threads (#1862) 2023-01-06 10:28:25 +08:00