WASIX: Fix thread termination logic #4396
Labels
bug
Something isn't working
📦 lib-wasi
About wasmer-wasi
lib-wasix
Issues related to the WASIX toolchain.
priority-medium
Medium priority issue
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.
The text was updated successfully, but these errors were encountered: