emscripten-core / emscripten-core/emscripten
Convert low level thread creation to use wasi-threads API (thread_spawn)
Open
multithreading
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
The wasi-thread proposal is fairly far along now and, in particular, the thread-creation API has been worked through pretty well.
See https://github.com/WebAssembly/wasi-threads
In emscripten we have `__pthread_create_js` which takes the role of `thread_spawn` but we should be able convert to the standard API.
Doing this should allow `-sSTANDALONE_WASM` module to run in other runtimes such as wamr and wasmtime.
Contributor guide
Assessment
This issue has not been assessed yet.