glibc/sysdeps/mach
Samuel Thibault 8081702460 htl: Make pthread_cond_destroy wait for threads to be woken
This allows to reuse the storage after calling pthread_cond_destroy.

* sysdeps/htl/bits/types/struct___pthread_cond.h (__pthread_cond):
Replace unused struct __pthread_condimpl *__impl field with unsigned int
__wrefs.
(__PTHREAD_COND_INITIALIZER): Update accordingly.
* sysdeps/htl/pt-cond-timedwait.c (__pthread_cond_timedwait_internal):
Register as waiter in __wrefs field. On unregistering, wake any pending
pthread_cond_destroy.
* sysdeps/htl/pt-cond-destroy.c (__pthread_cond_destroy): Register wake
request in __wrefs.
* nptl/Makefile (tests): Move tst-cond20 tst-cond21 to...
* sysdeps/pthread/Makefile (tests): ... here.
* nptl/tst-cond20.c nptl/tst-cond21.c: Move to...
* sysdeps/pthread/tst-cond20.c sysdeps/pthread/tst-cond21.c: ... here.
2020-06-01 17:38:31 +00:00
..
htl hurd: Add __pthread_spin_wait and use it 2020-02-11 00:32:44 +01:00
hurd htl: Make pthread_cond_destroy wait for threads to be woken 2020-06-01 17:38:31 +00:00
i386
include
sys
_strerror.c
adjtime.c
clock_gettime.c y2038: hurd: Provide __clock_gettime64 function 2020-05-05 18:45:14 +02:00
clock_nanosleep.c hurd: Make nanosleep a cancellation point 2020-02-10 01:03:53 +00:00
configure
configure.ac
getloadavg.c
getpagesize.c
getsysstats.c
libc-lock.h
libmachuser.abilist
Makefile
mprotect.c
msync.c
munmap.c
pagecopy.h
readonly-area.c
sched_yield.c
sleep.c
strerror_l.c
Subdirs
sysdep.h
thread_state.h
usleep.c
xpg-strerror.c