]> sourceware.org Git - glibc.git/commit
nptl: Consolidate async cancel enable/disable implementation in libc
authorFlorian Weimer <fweimer@redhat.com>
Wed, 5 May 2021 15:15:57 +0000 (17:15 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 5 May 2021 15:19:32 +0000 (17:19 +0200)
commitce0b7961ae400e5aeff28d54dc14955199947b74
tree3e7acb0eb6915c2c3af747dd9d982d4dc3418b78
parent0197c1bc604e1d6357cfa07a75ab73bababa7f0f
nptl: Consolidate async cancel enable/disable implementation in libc

Previously, the source file nptl/cancellation.c was compiled multiple
times, for libc, libpthread, librt.  This commit switches to a single
implementation, with new __pthread_enable_asynccancel@@GLIBC_PRIVATE,
__pthread_disable_asynccancel@@GLIBC_PRIVATE exports.

The almost-unused CANCEL_ASYNC and CANCEL_RESET macros are replaced
by LIBC_CANCEL_ASYNC and LIBC_CANCEL_ASYNC macros.  They call the
__pthread_* functions unconditionally now.  The macros are still
needed because shared code uses them; Hurd has different definitions.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
14 files changed:
elf/Makefile
manual/llio.texi
nptl/Makefile
nptl/Versions
nptl/cancellation.c
nptl/libc-cancellation.c [deleted file]
nptl/pthreadP.h
nptl/pthread_create.c
rt/Makefile
sysdeps/nptl/Makefile
sysdeps/nptl/librt-cancellation.c [deleted file]
sysdeps/nptl/lowlevellock-futex.h
sysdeps/unix/sysv/linux/socketcall.h
sysdeps/unix/sysv/linux/sysdep-cancel.h
This page took 0.044191 seconds and 5 git commands to generate.