about summary refs log tree commit diff
path: root/sysdeps/pthread/tst-sem7.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-06-27 18:33:52 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-06-28 00:13:57 +0000
commit6414eef6e013f46ee94d5f961af15659e1933182 (patch)
tree9ab323aa3e062346927cdfb06203027c2da1a65c /sysdeps/pthread/tst-sem7.c
parentcf2c8cc2c674dd6c1145c6984121ea4754b79162 (diff)
downloadglibc-6414eef6e013f46ee94d5f961af15659e1933182.tar.gz
glibc-6414eef6e013f46ee94d5f961af15659e1933182.tar.xz
glibc-6414eef6e013f46ee94d5f961af15659e1933182.zip
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.
Diffstat (limited to 'sysdeps/pthread/tst-sem7.c')
0 files changed, 0 insertions, 0 deletions