glibc/sysdeps
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
..
aarch64 aarch64: fix strcpy and strnlen for big-endian [BZ #25824] 2020-05-15 12:15:56 +01:00
alpha Update alpha libm-test-ulps 2020-04-08 13:52:45 -03:00
arm arm: XFAIL string/tst-memmove-overflow due to bug 25620 2020-05-13 16:48:26 +02:00
csky semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
generic Hurd: Use __sigmask in favor of deprecated sigmask 2020-05-28 11:40:13 +02:00
gnu
hppa semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
htl htl: Make pthread_cond_destroy wait for threads to be woken 2020-06-01 17:38:31 +00:00
hurd Hurd: Move <hurd/sigpreempt.h> internals into wrapper header 2020-05-28 11:40:13 +02:00
i386 i386: Remove NO_TLS_DIRECT_SEG_REFS handling 2020-05-28 11:53:08 +02:00
ia64 semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
ieee754 float128: use builtin_signbitf128 always 2020-05-04 13:18:45 -05:00
m68k
mach htl: Make pthread_cond_destroy wait for threads to be woken 2020-06-01 17:38:31 +00:00
microblaze semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
mips Rename __LONG_DOUBLE_USES_FLOAT128 to __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 2020-04-30 08:52:08 -05:00
nios2 semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
nptl nptl: Add __pthread_attr_copy for copying pthread_attr_t objects 2020-05-20 20:28:44 +02:00
posix linux: Use internal DIR locks when accessing filepos on telldir 2020-05-27 11:55:00 -03:00
powerpc powerpc: Optimized rawmemchr for POWER9 2020-05-18 17:08:54 -05:00
pthread htl: Make pthread_cond_destroy wait for threads to be woken 2020-06-01 17:38:31 +00:00
riscv semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
s390 semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
sh semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
sparc semaphore: consolidate arch headers into a generic one 2020-05-06 13:07:12 -07:00
unix i386: Remove unused file sysdeps/unix/i386/sysdep.S 2020-05-28 13:44:29 +02:00
wordsize-32
wordsize-64
x86 x86: Update Intel Atom processor family optimization 2020-05-21 13:36:54 -07:00
x86_64 Linux: Remove remnants of the getcpu cache 2020-05-16 15:47:51 +02:00