wasm-micro-runtime/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src
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
..
gnuc.h Enable gcc-4.8 compilation (#1928) 2023-02-02 19:34:20 +08:00
LICENSE Enable AoT and wamr-sdk, and change arguments of call wasm API (#157) 2020-01-21 13:26:14 +08:00
locking.h Apply clang-format for core/iwasm compilation and libraries (#784) 2021-10-13 15:13:00 +08:00
posix.c Fix issues in the libc-wasi poll_oneoff when thread-mgr is enabled (#1980) 2023-02-23 16:11:33 +08:00
posix.h Merge dev/socket into main (#1393) 2022-09-22 21:46:14 +08:00
queue.h Apply clang-format for core/iwasm compilation and libraries (#784) 2021-10-13 15:13:00 +08:00
random.c Apply clang-format for core/iwasm compilation and libraries (#784) 2021-10-13 15:13:00 +08:00
random.h Apply clang-format for core/iwasm compilation and libraries (#784) 2021-10-13 15:13:00 +08:00
README.md Rename "master" branch to "main" 2020-06-27 02:39:47 -07:00
refcount.h Enable gcc-4.8 compilation (#1928) 2023-02-02 19:34:20 +08:00
rights.h Implement part of Berkeley Socket API for libc-wasi (#1036) 2022-03-10 15:13:38 +08:00
ssp_config.h Fix libc-wasi build failure when using clang (#1950) 2023-02-14 18:28:00 +08:00
str.c Apply clang-format for core/iwasm compilation and libraries (#784) 2021-10-13 15:13:00 +08:00
str.h Apply clang-format for core/iwasm compilation and libraries (#784) 2021-10-13 15:13:00 +08:00

This directory consists of selected files copied from the [src/libemulator] directory in the cloudabi-utils repository, with minor modifications, along with the accompanying LICENSE file from that repository.

The modifications are marked with WASMTIME_* preprocessor macros.

The files were copied at git revision 223dadc53248552db43e012c67ed08cf416a2b12 which is dated Tue Jun 25 17:22:07 2019 -0700 .