]> git.proxmox.com Git - wasi-libc.git/commit
threads: enable access to `pthread_barrier_*` functions (#358)
authorAndrew Brown <andrew.brown@intel.com>
Tue, 13 Dec 2022 17:19:32 +0000 (09:19 -0800)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Fri, 8 Sep 2023 08:05:40 +0000 (10:05 +0200)
commit6e3db6a23d034450d9fda3ca3c61210bfbaf146a
treedd21a17fa09fdc1734d7ffe48fbee9d9c9241fd7
parent6bea588d0c963b6faf8cf562673f30740c407c09
threads: enable access to `pthread_barrier_*` functions (#358)

In building some `libc-test` tests, I found these functions were not
compiled in. This change adds `pthread_barrier_init`,
`pthread_barrier_wait`, and `pthread_barrier_destroy` to the
`THREAD_MODEL=posix` build. As has been done with previous pthreads PRs,
this PR skips any inter-process locking by removing any calls to
`__vm_lock` and friends. If in the future WASI gains the "process"
concept, then these locations (and the pre-existing ones) will need to
be modified.
Makefile
expected/wasm32-wasi/posix/defined-symbols.txt
libc-top-half/musl/src/thread/pthread_barrier_destroy.c
libc-top-half/musl/src/thread/pthread_barrier_wait.c