Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new option to allow waiting thread start before thread-spawn return #116

Merged
merged 2 commits into from
May 8, 2024

Conversation

toyobayashi
Copy link
Owner

https://github.com/WebAssembly/wasi-threads?tab=readme-ov-file#design-choice-pthreads

  1. in pthread_create, call wasi_thread_spawn with the configured start_args and use atomic.wait to wait for the start_args->thread->tid value to change (note that for web polyfills this may not be necessary since creation of web workers is not synchronous)

Not available on browser.

@toyobayashi
Copy link
Owner Author

I guess it also not available on StackBlitz.

@toyobayashi toyobayashi merged commit e1b1064 into main May 8, 2024
6 checks passed
@toyobayashi toyobayashi deleted the feat-wait-thread-start branch May 8, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant