mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 08:48:29 +00:00
Add posix semaphores support
There's still some bugs to work out on Windows and OpenBSD.
This commit is contained in:
parent
f52f65b2e3
commit
8111462789
36 changed files with 779 additions and 59 deletions
|
@ -33,6 +33,6 @@
|
|||
void _wait0(const atomic_int *ctid) {
|
||||
int x;
|
||||
while ((x = atomic_load_explicit(ctid, memory_order_relaxed))) {
|
||||
nsync_futex_wait_((int *)ctid, x, !IsWindows(), 0);
|
||||
nsync_futex_wait_(ctid, x, !IsWindows(), 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue