wasm-micro-runtime/core/iwasm/include
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
..
aot_export.h Fix typo (dwarf) in the codebase (#2367) 2023-07-19 17:58:52 +08:00
lib_export.h Apply clang-format for more src files and update spec test script (#775) 2021-10-08 17:47:11 +08:00
wasm_c_api.h Improve wasm-c-api instantiation-time linking (#1902) 2023-02-13 15:06:04 +08:00
wasm_export.h Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00