wasm-micro-runtime/core/iwasm/libraries/lib-wasi-threads/test
Georgii Rylov 2de24587a8
Fix wait_info data race for deletion and fix atomic_wait logic (#2016)
Fix a data race for test main_proc_exit_wait.c from #1963.
And fix atomic_wait logic that was wrong before:
- a thread 1 started executing wasm instruction wasm_atomic_wait
  but hasn't reached waiting on condition variable
- a main thread calls proc_exit and notifies all the threads that reached
  waiting on condition variable
Which leads to thread 1 hang on waiting on condition variable after that

Now it's atomically checked whether proc_exit was already called.
2023-03-13 10:19:17 +08:00
..
build.sh Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
common.h Fix wait_info data race for deletion and fix atomic_wait logic (#2016) 2023-03-13 10:19:17 +08:00
create_threads_until_limit.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
global_atomic.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
global_lock.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_proc_exit_busy.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_proc_exit_busy.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_proc_exit_sleep.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_proc_exit_sleep.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_proc_exit_wait.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_proc_exit_wait.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_trap_busy.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_trap_busy.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_trap_sleep.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_trap_sleep.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_trap_wait.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
main_trap_wait.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_proc_exit_busy.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_proc_exit_busy.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_proc_exit_sleep.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_proc_exit_sleep.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_proc_exit_wait.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_proc_exit_wait.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_trap_busy.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_trap_busy.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_trap_sleep.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_trap_sleep.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_trap_wait.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
nonmain_trap_wait.json Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
spawn_multiple_times.c Add internal tests for WASI threads (#1963) 2023-03-09 09:03:16 +08:00
update_shared_data_and_alloc_heap.c Fix malloc non-thread-safe usage in lib-wasi-threads test (#2022) 2023-03-11 10:44:37 +08:00