mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-13 21:21:22 +00:00
wasm_runtime_begin_blocking_op: A comment about usage expectation (#3056)
This commit is contained in:
parent
a7545df5d0
commit
17b0111577
|
@ -1607,6 +1607,9 @@ wasm_runtime_get_context(wasm_module_inst_t inst, void *key);
|
||||||
* host functions. It wraps an operation which possibly blocks for long
|
* host functions. It wraps an operation which possibly blocks for long
|
||||||
* to prepare for async termination.
|
* to prepare for async termination.
|
||||||
*
|
*
|
||||||
|
* For simplicity, we recommend to wrap only the very minimum piece of
|
||||||
|
* the code with this. Ideally, just a single system call.
|
||||||
|
*
|
||||||
* eg.
|
* eg.
|
||||||
*
|
*
|
||||||
* if (!wasm_runtime_begin_blocking_op(exec_env)) {
|
* if (!wasm_runtime_begin_blocking_op(exec_env)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user