summaryrefslogtreecommitdiff
path: root/wasm2c/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'wasm2c/README.md')
-rw-r--r--wasm2c/README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/wasm2c/README.md b/wasm2c/README.md
index 5271e892..e0739bfb 100644
--- a/wasm2c/README.md
+++ b/wasm2c/README.md
@@ -295,6 +295,8 @@ void wasm_rt_allocate_externref_table(wasm_rt_externref_table_t*, uint32_t eleme
void wasm_rt_free_funcref_table(wasm_rt_table_t*);
void wasm_rt_free_externref_table(wasm_rt_table_t*);
uint32_t wasm_rt_call_stack_depth; /* on platforms that don't use the signal handler to detect exhaustion */
+void wasm_rt_init_thread(void);
+void wasm_rt_free_thread(void);
```
`wasm_rt_init` must be called by the embedder before anything else, to
@@ -339,6 +341,11 @@ shared between modules, it must be defined only once, by the embedder.
It is only used on platforms that don't use the signal handler to detect
exhaustion.
+`wasm_rt_init_thread` and `wasm_rt_free_thread` are used to initialize
+and free the runtime state for a given thread (other than the one that
+called `wasm_rt_init`). An example can be found in
+`wasm2c/examples/threads`.
+
### Runtime support for exception handling
Several additional symbols must be defined if wasm2c is being run with support