emscripten-core / emscripten-core/emscripten

Convert low level thread creation to use wasi-threads API (thread_spawn)

Open
#19,185 0 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.