Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jun 9, 2023
1 parent 6a415fd commit e12c84f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,17 @@ void instance_destroy(struct instance *inst);
* return following toywasm-specific errors:
*
* ETOYWASMRESTART: the execution has been suspended for some reasons.
* possible reasons include:
*
* - suspend_threads mechanism, which is used for
* memory.grow on multithreaded configuration.
*
* - context switch requests for TOYWASM_USE_USER_SCHED
*
* the caller should usually resume the execution by
* calling instance_execute_handle_restart. or,
* use instance_execute_continue if you need some
* application-specific processing.
* application-specific handling.
*
* ETOYWASMTRAP: the exection was terminated by a wasm trap.
* the caller can investigate ctx->trap for details.
Expand Down

0 comments on commit e12c84f

Please sign in to comment.