]> git.proxmox.com Git - wasi-libc.git/commit
Disable pthread_exit for now (#366)
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Wed, 21 Dec 2022 01:24:09 +0000 (10:24 +0900)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 2 Aug 2023 10:24:08 +0000 (12:24 +0200)
commit7c552a6c87afc35739141eacd5e334a1e8a3983a
treec6cfffc2138e4268071e3d3b94bc7027fa099a0f
parent83662e2681c8ca398e4996b82cf0bc73f6d66328
Disable pthread_exit for now (#366)

The current wasi-threads has no thread-exit functionality.
Thus it isn't straightforward to implement pthread_exit
without leaking thread context. This commit simply disables
pthread_exit for now.

Also, instead of abusing `wasi_proc_exit` for thread exit,
make `wasi_thread_start` return.

Note: `wasi_proc_exit` is supposed to terminate all threads
in the "process", not only the calling thread.

Note: Depending on the conclusion of the discussion about
`wasi_thread_exit`, we might revisit this change later.

References:
https://github.com/WebAssembly/wasi-threads/issues/7
https://github.com/WebAssembly/wasi-threads/pull/17
expected/wasm32-wasi-pthread/defined-symbols.txt
libc-top-half/musl/include/pthread.h
libc-top-half/musl/src/include/pthread.h
libc-top-half/musl/src/thread/pthread_create.c