glibc/sysdeps/htl
Samuel Thibault 6414eef6e0 htl: Move cleanup handling to non-private libc-lock
This adds sysdeps/htl/libc-lock.h which augments sysdeps/mach/libc-lock.h with
the htl-aware cleanup handling. Otherwise inclusion of libc-lock.h
without libc-lockP.h would keep only the mach-aware handling.

This also fixes cleanup getting called when the binary is
statically-linked without libpthread.

* sysdeps/htl/libc-lockP.h (__libc_cleanup_region_start,
__libc_cleanup_end, __libc_cleanup_region_end,
__pthread_get_cleanup_stack): Move to...
* sysdeps/htl/libc-lock.h: ... new file.
(__libc_cleanup_region_start): Always set handler and arg.
(__libc_cleanup_end): Always call the cleanup handler.
(__libc_cleanup_push, __libc_cleanup_pop): New macros.
2020-06-28 00:13:57 +00:00
..
bits htl: Make pthread_cond_destroy wait for threads to be woken 2020-06-01 17:38:31 +00:00
include htl: Add wrapper header for <semaphore.h> with hidden __sem_post 2020-06-24 13:38:08 +02:00
flockfile.c htl: Fix includes for lockfile 2020-06-28 00:13:57 +00:00
fork.h
ftrylockfile.c htl: Fix includes for lockfile 2020-06-28 00:13:57 +00:00
funlockfile.c htl: Fix includes for lockfile 2020-06-28 00:13:57 +00:00
Implies
libc-lock.h htl: Move cleanup handling to non-private libc-lock 2020-06-28 00:13:57 +00:00
libc-lockP.h htl: Move cleanup handling to non-private libc-lock 2020-06-28 00:13:57 +00:00
Makeconfig
Makefile
old_pt-atfork.c htl: Fix registration of atfork handlers in modules 2020-06-07 23:36:42 +00:00
pt-atfork.c htl: Fix registration of atfork handlers in modules 2020-06-07 23:36:42 +00:00
pt-attr-destroy.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-getdetachstate.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-getguardsize.c
pt-attr-getinheritsched.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-getschedparam.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-getschedpolicy.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-getscope.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-getstack.c
pt-attr-getstackaddr.c
pt-attr-getstacksize.c
pt-attr-init.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-setdetachstate.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-setguardsize.c
pt-attr-setinheritsched.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-setschedparam.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-setschedpolicy.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-setscope.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-attr-setstack.c
pt-attr-setstackaddr.c
pt-attr-setstacksize.c
pt-attr.c
pt-barrier-destroy.c
pt-barrier-init.c
pt-barrier-wait.c hurd: Add __pthread_spin_wait and use it 2020-02-11 00:32:44 +01:00
pt-barrier.c
pt-barrierattr-destroy.c
pt-barrierattr-getpshared.c
pt-barrierattr-init.c
pt-barrierattr-setpshared.c
pt-cond-brdcast.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-cond-destroy.c htl: Fix gsync_wait symbol exposition 2020-06-01 22:22:03 +02:00
pt-cond-init.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-cond-signal.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-cond-timedwait.c htl: Simplify non-cancel path of __pthread_cond_timedwait_internal 2020-06-24 01:19:48 +02:00
pt-cond-wait.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
pt-cond.c
pt-condattr-destroy.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-condattr-getclock.c
pt-condattr-getpshared.c
pt-condattr-init.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-condattr-setclock.c
pt-condattr-setpshared.c
pt-destroy-specific.c
pt-equal.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-getconcurrency.c
pt-getcpuclockid.c
pt-getschedparam.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-getspecific.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-init-specific.c
pt-key-create.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-key-delete.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-key.h
pt-once.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-rwlock-attr.c
pt-rwlock-destroy.c
pt-rwlock-init.c
pt-rwlock-rdlock.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
pt-rwlock-timedrdlock.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
pt-rwlock-timedwrlock.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
pt-rwlock-tryrdlock.c hurd: Add __pthread_spin_wait and use it 2020-02-11 00:32:44 +01:00
pt-rwlock-trywrlock.c hurd: Add __pthread_spin_wait and use it 2020-02-11 00:32:44 +01:00
pt-rwlock-unlock.c hurd: Add __pthread_spin_wait and use it 2020-02-11 00:32:44 +01:00
pt-rwlock-wrlock.c htl: Add clock variants 2020-05-26 00:46:07 +00:00
pt-rwlockattr-destroy.c
pt-rwlockattr-getpshared.c
pt-rwlockattr-init.c
pt-rwlockattr-setpshared.c
pt-setconcurrency.c
pt-setschedparam.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-setschedprio.c
pt-setspecific.c htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
pt-startup.c
pthread-functions.h htl: Add noreturn attribute on __pthread_exit forward 2020-06-14 12:53:38 +00:00
pthread.h htl: Add clock variants 2020-05-26 00:46:07 +00:00
pthreadP.h htl: Fix tls initialization for already-created threads 2020-06-07 23:36:40 +00:00
raise.c
sem-close.c
sem-destroy.c
sem-getvalue.c hurd: Add __pthread_spin_wait and use it 2020-02-11 00:32:44 +01:00
sem-init.c
sem-open.c
sem-post.c htl: Add wrapper header for <semaphore.h> with hidden __sem_post 2020-06-24 13:38:08 +02:00
sem-timedwait.c htl: Add wrapper header for <semaphore.h> with hidden __sem_post 2020-06-24 13:38:08 +02:00
sem-trywait.c hurd: Add __pthread_spin_wait and use it 2020-02-11 00:32:44 +01:00
sem-unlink.c
sem-wait.c htl: Add sem_clockwait support 2020-06-07 03:14:49 +02:00
shm-directory.h
stdio-lock.h htl: Fix cleanup support for IO locking 2020-06-14 15:53:04 +00:00
Subdirs
thrd_current.c
timer_routines.h
Versions