This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/core/iwasm/libraries/libc-wasi
Enrico Loparco 63273a1673
Fix issues in the libc-wasi poll_oneoff when thread-mgr is enabled (#1980)
Fix issues in the libc-wasi `poll_oneoff` when thread manager is enabled:
-  The exception of a thread may be cleared when other thread runs into
   `proc_exit` and then calls `clear_wasi_proc_exit_exception`, so should not
   use `wasm_runtime_get_exception` to check whether an exception was
    thrown, use `wasm_cluster_is_thread_terminated` instead
- We divided one time poll_oneoff into many times poll_oneoff to check
   the exception to avoid long time waiting in previous PR, but if all events
   returned by one time poll are all waiting events, we need to continue to
   wait but not return directly.

Follow-up on #1951. Tested with multiple timeout values, with and without
interruption and measured the time spent sleeping.
2023-02-23 16:11:33 +08:00
..
sandboxed-system-primitives Fix issues in the libc-wasi poll_oneoff when thread-mgr is enabled (#1980) 2023-02-23 16:11:33 +08:00
libc_wasi_wrapper.c Fix issues in the libc-wasi poll_oneoff when thread-mgr is enabled (#1980) 2023-02-23 16:11:33 +08:00
libc_wasi_wrapper.h Implement part of Berkeley Socket API for libc-wasi (#1036) 2022-03-10 15:13:38 +08:00
libc_wasi.cmake Enable AoT and wamr-sdk, and change arguments of call wasm API (#157) 2020-01-21 13:26:14 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00