Skip to content

WASIX: Fix thread termination logic #4396

Open
@theduke

Description

@theduke

Currently our thread termination tracking logic is quite scuffed.

There is a global watchable handle that is supposed to hold thread status.

But the status is actually also used to figure out if a thread should terminate in __asyncify() calls.

Calling WasiThread::terminate() currently succeeds immediately, because it sets said status.

We need to separate things out into a "should shut down" status and a "has shut down" status.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglib-wasixIssues related to the WASIX toolchain.priority-mediumMedium priority issue📦 lib-wasiAbout wasmer-wasi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions