Skip to content

Commit 0daf3d7

Browse files
committed
comments
1 parent 5ac3cb5 commit 0daf3d7

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

core/iwasm/include/wasm_export.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,13 +1555,16 @@ wasm_runtime_get_context(wasm_module_inst_t inst, void *key);
15551555
*
15561556
* eg.
15571557
*
1558-
* if (!wasm_runtime_begin_blocking_op) {
1558+
* if (!wasm_runtime_begin_blocking_op(exec_env)) {
15591559
* return EINTR;
15601560
* }
15611561
* ret = possibly_blocking_op();
1562-
* wasm_runtime_end_blocking_op(env);
1562+
* wasm_runtime_end_blocking_op(exec_env);
15631563
* return ret;
15641564
*
1565+
* If threading support (WASM_ENABLE_THREAD_MGR) is not enabled,
1566+
* these functions are no-op.
1567+
*
15651568
* If the underlying platform support (OS_ENABLE_WAKEUP_BLOCKING_OP) is
15661569
* not available, these functions are no-op. In that case, the runtime
15671570
* might not terminate a blocking thread in a timely manner.

0 commit comments

Comments
 (0)