]> 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 <f.gruenbichler@proxmox.com>
Wed, 2 Aug 2023 10:24:08 +0000 (12:24 +0200)
commit583c426996e76c64533c604d2cb25b9da3d50021
treec0bdbf8a0e1475544bcc11dced751e1b7680f19e
parentc071a602eab60ef45416173298f9d8b820121fa5
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