From e12c84f9e25b9040350c9cb74208d311ea8c1b85 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 9 Jun 2023 23:57:04 +0900 Subject: [PATCH] comment --- lib/instance.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/instance.h b/lib/instance.h index 2c2ff154..292db9f4 100644 --- a/lib/instance.h +++ b/lib/instance.h @@ -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.