Skip to content

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

Open
@sbc100

Description

@sbc100
Collaborator

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sbc100

        Issue actions

          Convert low level thread creation to use wasi-threads API (thread_spawn) · Issue #19185 · emscripten-core/emscripten