]> git.proxmox.com Git - wasi-libc.git/commit
threads: implement support for conditional variables (#323)
authorMarcin Kolny <mkolny@amazon.com>
Tue, 6 Sep 2022 21:21:06 +0000 (23:21 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Sep 2022 21:21:06 +0000 (14:21 -0700)
commitc40403f9b02f1b71c73a0537518ba26f91c194c4
treec4b0731f9027ce651f9284b49a5211b21be13c88
parent27ba71f95e6bdb4c04eb8209c8072b5049686636
threads: implement support for conditional variables (#323)

The implementation is not as efficient as for native Linux platform due
to lack of FUTEX_REQUEUE-like system call in WASI.

For now we wake all the waiters which is inefficient; if that becomes
a bottleneck, I suggest we'll revisit the implementation.
Makefile
expected/wasm32-wasi/posix/defined-symbols.txt
libc-top-half/musl/src/thread/pthread_cond_timedwait.c