diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-27 18:33:52 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-28 00:13:57 +0000 |
commit | 6414eef6e013f46ee94d5f961af15659e1933182 (patch) | |
tree | 9ab323aa3e062346927cdfb06203027c2da1a65c /hurd | |
parent | cf2c8cc2c674dd6c1145c6984121ea4754b79162 (diff) | |
download | glibc-6414eef6e013f46ee94d5f961af15659e1933182.zip glibc-6414eef6e013f46ee94d5f961af15659e1933182.tar.gz glibc-6414eef6e013f46ee94d5f961af15659e1933182.tar.bz2 |
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 'hurd')
0 files changed, 0 insertions, 0 deletions