wasm-micro-runtime/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src
YAMAMOTO Takashi 9afbeab1c8
wasi: Apply wasm_runtime_begin_blocking_op to poll as well (#3080)
While we used a different approach for poll_oneoff [1],
the implementation works only when the poll list includes
an absolute clock event. That is, if we have a thread which is
polling on descriptors without a timeout, we fail to terminate
the thread.

This commit fixes it by applying wasm_runtime_begin_blocking_op
to poll as well.

[1] https://github.com/bytecodealliance/wasm-micro-runtime/pull/1951
2024-01-25 16:29:34 +08:00
..
blocking_op.c wasi: Apply wasm_runtime_begin_blocking_op to poll as well (#3080) 2024-01-25 16:29:34 +08:00
blocking_op.h wasi: Apply wasm_runtime_begin_blocking_op to poll as well (#3080) 2024-01-25 16:29:34 +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 Rename rwlock_init to avoid conflict (#3016) 2024-01-16 08:53:18 +08:00
posix.c wasi: Apply wasm_runtime_begin_blocking_op to poll as well (#3080) 2024-01-25 16:29:34 +08:00
posix.h Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
queue.h Apply clang-format for core/iwasm compilation and libraries (#784) 2021-10-13 15:13:00 +08:00
random.c Use next generation crypto API on Windows (#2769) 2023-11-17 18:40:29 +08:00
random.h Use next generation crypto API on Windows (#2769) 2023-11-17 18:40:29 +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 Set CONFIG_HAS_CAP_ENTER to support posix file api for freertos (#3041) 2024-01-17 21:20:35 +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 .