glibc/sysdeps/pthread
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
aio_cancel.c
aio_error.c
aio_fsync.c
aio_misc.c
aio_misc.h
aio_notify.c
aio_read64.c
aio_read.c
aio_suspend.c
aio_write64.c
aio_write.c
allocalim.h
call_once.c
cnd_broadcast.c
cnd_destroy.c
cnd_init.c
cnd_signal.c
cnd_timedwait.c
cnd_wait.c
flockfile.c
ftrylockfile.c
funlockfile.c
lio_listio64.c
lio_listio.c
Makeconfig
Makefile htl: Make pthread_cond_destroy wait for threads to be woken 2020-06-01 17:38:31 +00:00
mtx_destroy.c
mtx_init.c
mtx_lock.c
mtx_timedlock.c
mtx_trylock.c
mtx_unlock.c
posix-timer.h
semaphore.h
thrd_create.c
thrd_detach.c
thrd_equal.c
thrd_exit.c
thrd_join.c
thrd_priv.h
thrd_sleep.c
threads.h
timer_create.c
timer_delete.c
timer_getoverr.c
timer_gettime.c
timer_routines.c
timer_settime.c
tss_create.c
tss_delete.c
tss_get.c
tss_set.c
tst-abstime.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-attr1.c pthread: Move some attr tests from nptl to sysdeps/pthread 2020-02-09 17:30:30 +00:00
tst-barrier1.c pthread: Move most barrier tests from nptl to sysdeps/pthread 2020-02-10 01:03:55 +00:00
tst-barrier2.c pthread: Move most barrier tests from nptl to sysdeps/pthread 2020-02-10 01:03:55 +00:00
tst-barrier3.c pthread: Move most barrier tests from nptl to sysdeps/pthread 2020-02-10 01:03:55 +00:00
tst-barrier4.c pthread: Move most barrier tests from nptl to sysdeps/pthread 2020-02-10 01:03:55 +00:00
tst-basic1.c pthread: Move basic tests from nptl to sysdeps/pthread 2020-02-09 16:12:53 +00:00
tst-basic2.c pthread: Move basic tests from nptl to sysdeps/pthread 2020-02-09 16:12:53 +00:00
tst-basic3.c pthread: Move basic tests from nptl to sysdeps/pthread 2020-02-09 16:12:53 +00:00
tst-basic4.c pthread: Move basic tests from nptl to sysdeps/pthread 2020-02-09 16:12:53 +00:00
tst-basic5.c pthread: Move basic tests from nptl to sysdeps/pthread 2020-02-09 16:12:53 +00:00
tst-basic6.c pthread: Move basic tests from nptl to sysdeps/pthread 2020-02-09 16:12:53 +00:00
tst-basic7.c pthread: Move basic tests from nptl to sysdeps/pthread 2020-02-09 16:12:53 +00:00
tst-call-once.c
tst-cnd-basic.c
tst-cnd-broadcast.c
tst-cnd-timedwait.c
tst-cond1.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond2.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond3.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond4.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond5.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond6.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond7.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond8-static.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond8.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond9.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond10.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond11-static.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond11.c tst-cond11: Fix build with _SC_MONOTONIC_CLOCK > 0 2020-06-01 17:38:31 +00:00
tst-cond12.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond13.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond14.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond15.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond16.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond17.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond18.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond19.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond20.c htl: Make pthread_cond_destroy wait for threads to be woken 2020-06-01 17:38:31 +00:00
tst-cond21.c htl: Make pthread_cond_destroy wait for threads to be woken 2020-06-01 17:38:31 +00:00
tst-cond22.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond23.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond24.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond25.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond26.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond27.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-cond-except.c pthread: Move most cond tests from nptl to sysdeps/pthread 2020-02-09 19:24:44 +00:00
tst-join1.c pthread: Move some join tests from nptl to sysdeps/pthread 2020-02-10 01:21:46 +00:00
tst-join2.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-join3.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-join4.c pthread: Move some join tests from nptl to sysdeps/pthread 2020-02-10 01:21:46 +00:00
tst-join5.c pthread: Move some join tests from nptl to sysdeps/pthread 2020-02-10 01:21:46 +00:00
tst-join6.c pthread: Move some join tests from nptl to sysdeps/pthread 2020-02-10 01:21:46 +00:00
tst-join7.c pthread: Move some join tests from nptl to sysdeps/pthread 2020-02-10 01:21:46 +00:00
tst-join7mod.c pthread: Move some join tests from nptl to sysdeps/pthread 2020-02-10 01:21:46 +00:00
tst-join8.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-join9.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-join10.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-join11.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-join12.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-join13.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-join14.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-key1.c pthread: Move key tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-key2.c pthread: Move key tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-key3.c pthread: Move key tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-key4.c pthread: Move key tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-mtx-basic.c
tst-mtx-recursive.c
tst-mtx-timedlock.c
tst-mtx-trylock.c
tst-mutex1.c pthread: Move most mutex tests from nptl to sysdeps/pthread 2020-02-09 17:17:06 +00:00
tst-mutex2.c pthread: Move most mutex tests from nptl to sysdeps/pthread 2020-02-09 17:17:06 +00:00
tst-mutex3.c pthread: Move most mutex tests from nptl to sysdeps/pthread 2020-02-09 17:17:06 +00:00
tst-mutex4.c pthread: Move most mutex tests from nptl to sysdeps/pthread 2020-02-09 17:17:06 +00:00
tst-mutex5.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-mutex6.c pthread: Move most mutex tests from nptl to sysdeps/pthread 2020-02-09 17:17:06 +00:00
tst-mutex7.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-mutex7robust.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-mutex9.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-mutex10.c pthread: Move most mutex tests from nptl to sysdeps/pthread 2020-02-09 17:17:06 +00:00
tst-mutex11.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-mutex-errorcheck.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-once1.c pthread: Move most once tests from nptl to sysdeps/pthread 2020-02-09 19:50:21 +00:00
tst-once2.c pthread: Move most once tests from nptl to sysdeps/pthread 2020-02-09 19:50:21 +00:00
tst-once3.c pthread: Move most once tests from nptl to sysdeps/pthread 2020-02-09 19:50:21 +00:00
tst-once4.c pthread: Move most once tests from nptl to sysdeps/pthread 2020-02-09 19:50:21 +00:00
tst-oncex3.c pthread: Move most once tests from nptl to sysdeps/pthread 2020-02-09 19:50:21 +00:00
tst-oncex4.c pthread: Move most once tests from nptl to sysdeps/pthread 2020-02-09 19:50:21 +00:00
tst-pthread-mutexattr.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-robust1.c pthread: Move robust mutex tests from nptl to sysdeps/pthread 2020-02-16 14:43:54 +00:00
tst-robust2.c pthread: Move robust mutex tests from nptl to sysdeps/pthread 2020-02-16 14:43:54 +00:00
tst-robust3.c pthread: Move robust mutex tests from nptl to sysdeps/pthread 2020-02-16 14:43:54 +00:00
tst-robust4.c pthread: Move robust mutex tests from nptl to sysdeps/pthread 2020-02-16 14:43:54 +00:00
tst-robust5.c pthread: Move robust mutex tests from nptl to sysdeps/pthread 2020-02-16 14:43:54 +00:00
tst-robust6.c pthread: Move robust mutex tests from nptl to sysdeps/pthread 2020-02-16 14:43:54 +00:00
tst-robust7.c pthread: Move robust mutex tests from nptl to sysdeps/pthread 2020-02-16 14:43:54 +00:00
tst-robust8.c pthread: Move robust mutex tests from nptl to sysdeps/pthread 2020-02-16 14:43:54 +00:00
tst-robust9.c pthread: Move robust mutex tests from nptl to sysdeps/pthread 2020-02-16 14:43:54 +00:00
tst-robust10.c pthread: Move robust mutex tests from nptl to sysdeps/pthread 2020-02-16 14:43:54 +00:00
tst-rwlock1.c pthread: Move some rwlock tests from nptl to sysdeps/pthread 2020-02-09 20:07:51 +00:00
tst-rwlock4.c pthread: Move some rwlock tests from nptl to sysdeps/pthread 2020-02-09 20:07:51 +00:00
tst-rwlock5.c pthread: Move some rwlock tests from nptl to sysdeps/pthread 2020-02-09 20:07:51 +00:00
tst-rwlock12.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-rwlock13.c pthread: Move some rwlock tests from nptl to sysdeps/pthread 2020-02-09 20:07:51 +00:00
tst-rwlock14.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
tst-rwlock16.c pthread: Move some rwlock tests from nptl to sysdeps/pthread 2020-02-09 20:07:51 +00:00
tst-rwlock-tryrdlock-stall.c pthread: Move some rwlock tests from nptl to sysdeps/pthread 2020-02-09 20:07:51 +00:00
tst-rwlock-trywrlock-stall.c pthread: Move some rwlock tests from nptl to sysdeps/pthread 2020-02-09 20:07:51 +00:00
tst-sem1.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-sem2.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-sem3.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-sem4.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-sem6.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-sem7.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-sem8.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-sem9.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-sem10.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-sem14.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-sem15.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-sem16.c pthread: Move most sem tests from nptl to sysdeps/pthread 2020-02-10 01:03:54 +00:00
tst-spin1.c pthread: Move spin tests from nptl to sysdeps/pthread 2020-02-09 17:00:44 +00:00
tst-spin2.c pthread: Move spin tests from nptl to sysdeps/pthread 2020-02-09 17:00:44 +00:00
tst-spin3.c pthread: Move spin tests from nptl to sysdeps/pthread 2020-02-09 17:00:44 +00:00
tst-spin4.c pthread: Move spin tests from nptl to sysdeps/pthread 2020-02-09 17:00:44 +00:00
tst-thrd-detach.c
tst-thrd-sleep.c
tst-timer.c
tst-tss-basic.c
Versions