mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
Fix semaphore deadlock on Apple Silicon
This commit is contained in:
parent
e8ecf31ad5
commit
ee8a861635
1 changed files with 2 additions and 2 deletions
2
third_party/nsync/mu_semaphore_gcd.c
vendored
2
third_party/nsync/mu_semaphore_gcd.c
vendored
|
@ -114,7 +114,7 @@ errno_t nsync_mu_semaphore_p_with_deadline_gcd (nsync_semaphore *s,
|
|||
!_weaken (pthread_testcancel_np) ||
|
||||
!(pt = _pthread_self()) ||
|
||||
(pt->pt_flags & PT_NOCANCEL)) {
|
||||
nsync_dispatch_semaphore_wait (s, abs_deadline);
|
||||
result = nsync_dispatch_semaphore_wait (s, abs_deadline);
|
||||
} else {
|
||||
struct timespec now, until, slice;
|
||||
slice = timespec_frommillis (__SIG_LOCK_INTERVAL_MS);
|
||||
|
|
Loading…
Add table
Reference in a new issue