wasm-micro-runtime/core/iwasm/libraries
YAMAMOTO Takashi 444b159963
Implement async termination of blocking thread (#2516)
Send a signal whose handler is no-op to a blocking thread to wake up
the blocking syscall with either EINTR equivalent or partial success.

Unlike the approach taken in the `dev/interrupt_block_insn` branch (that is,
signal + longjmp similarly to `OS_ENABLE_HW_BOUND_CHECK`), this PR
does not use longjmp because:
* longjmp from signal handler doesn't work on nuttx
  refer to https://github.com/apache/nuttx/issues/10326
* the singal+longjmp approach may be too difficult for average programmers
  who might implement host functions to deal with

See also https://github.com/bytecodealliance/wasm-micro-runtime/issues/1910
2023-09-20 18:11:52 +08:00
..
debug-engine Update release notes and fix issues reported by Coverity (#1813) 2022-12-20 14:37:07 +08:00
lib-pthread Implement module instance context APIs (#2436) 2023-09-07 14:54:11 +08:00
lib-rats sgx-ra: Disable the building of samples (#2507) 2023-08-28 09:42:16 +08:00
lib-socket Fix wasi-sockets tests (#2389) 2023-07-30 19:34:09 +08:00
lib-wasi-threads Implement module instance context APIs (#2436) 2023-09-07 14:54:11 +08:00
libc-builtin Clear some warnings and enable -Werror for NuttX (#1756) 2022-11-28 09:44:33 +08:00
libc-emcc Expose wasm_runtime_call_indirect (#1969) 2023-02-20 18:56:55 +08:00
libc-uvwasi Update libuv version to v1.46.0 (#2405) 2023-07-31 18:32:20 +08:00
libc-wasi Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00
thread-mgr Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00
wasi-nn wasi-nn: Improve TPU support (#2447) 2023-08-14 20:03:56 +08:00