glibc/sysdeps/mach/hurd/htl
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
..
bits Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Implies
pt-docancel.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-hurd-cond-timedwait.c htl: Make pthread_cond_destroy wait for threads to be woken 2020-06-01 17:38:31 +00:00
pt-hurd-cond-wait.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutex-checklocked.c htl: Report missing mutex lock on pthread_cond_*wait 2020-02-09 18:33:14 +00:00
pt-mutex-consistent.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutex-destroy.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-mutex-getprioceiling.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutex-init.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-mutex-lock.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-mutex-setprioceiling.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutex-timedlock.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
pt-mutex-transfer-np.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutex-trylock.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-mutex-unlock.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-mutex.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutexattr-destroy.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutexattr-getprioceiling.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutexattr-getprotocol.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutexattr-getpshared.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutexattr-getrobust.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutexattr-gettype.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutexattr-init.c htl: Add type sizes in bits/pthreadtypes-arch.h and check them 2020-01-13 01:24:43 +01:00
pt-mutexattr-setprioceiling.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutexattr-setprotocol.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutexattr-setpshared.c htl: Remove stub warning for pthread_mutexattr_setpshared 2020-02-16 06:35:45 -08:00
pt-mutexattr-setrobust.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-mutexattr-settype.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-sigstate-destroy.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-sigstate-init.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-sigstate.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-sysdep.c htl: Fix default guard size 2020-02-09 17:28:33 +00:00
pt-sysdep.h htl: Only check pthread_self coherency when DEBUG is set 2020-02-15 14:32:37 +00:00