mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +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
|
@ -86,7 +86,7 @@ wontreturn void pthread_exit(void *rc) {
|
|||
// set_tid_address() upon every program startup which isn't possible
|
||||
// on non-linux platforms anyway.
|
||||
atomic_store_explicit(&__get_tls()->tib_tid, 0, memory_order_release);
|
||||
nsync_futex_wake_((int *)&__get_tls()->tib_tid, INT_MAX, !IsWindows());
|
||||
nsync_futex_wake_(&__get_tls()->tib_tid, INT_MAX, !IsWindows());
|
||||
_Exit1(0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue