File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ The host implementing `wasi_thread_spawn` will call a predetermined function
9494export (`wasi_thread_start`) in a new WebAssembly instance. Any necessary
9595locking/signaling/thread-local storage will be implemented using existing
9696instructions available in WebAssembly. Ideally, users will never use
97- `thread_spawn ` directly but rather compile their threaded code from a language
98- that supports threads (see below).
97+ `wasi_thread_spawn ` directly but rather compile their threaded code from a
98+ language that supports threads (see below).
9999
100100#### Use case: support various languages
101101
@@ -135,7 +135,9 @@ WASI host must:
135135 parent
1361364. optionally, spawn a new host-level thread (other spawning mechanisms are
137137 possible)
138- 5. calculate a non-duplicate thread ID, `tid`
138+ 5. calculate a positive, non-duplicate thread ID, `tid`, and return it to the
139+ caller; any error in the previous steps is indicated by returning a negative
140+ error code.
1391416. in the new thread, call the child instance's exported entry function with the
140142 thread ID and the start argument: `wasi_thread_start(tid, start_arg)`
141143
You can’t perform that action at this time.
0 commit comments