Skip to content

Commit 96ca24f

Browse files
committed
review: add @sbc100's comment re: web worker polyfills
1 parent 3c9b66d commit 96ca24f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ the `pthread_t` structure. This could be implemented by the following steps
161161
parameters `int tid` and `void *start_args`
162162
4. in `pthread_create`, call `wasi_thread_spawn` with the configured
163163
`start_args` and use `atomic.wait` to wait for the `start_args->thread->tid`
164-
value to change
164+
value to change (note that for web polyfills this may not be necessary since
165+
creation of web workers is not synchronous)
165166
5. now in the child thread: once the WASI host creates the new thread instance
166167
and calls `wasi_thread_start`, then a) set `args->thread->tid` to the
167168
host-provided `tid`, b) set the `__wasilibc_pthread_self` global to point to

0 commit comments

Comments
 (0)