glibc/htl
Florian Weimer 706ad1e7af Add the __libc_single_threaded variable
The variable is placed in libc.so, and it can be true only in
an outer libc, not libcs loaded via dlmopen or static dlopen.
Since thread creation from inner namespaces does not work,
pthread_create can update __libc_single_threaded directly.

Using __libc_early_init and its initial flag, implementation of this
variable is very straightforward.  A future version may reset the flag
during fork (but not in an inner namespace), or after joining all
threads except one.

Reviewed-by: DJ Delorie <dj@redhat.com>
2020-07-06 11:15:58 +02:00
..
tests
alloca_cutoff.c
cancellation.c
configure
configure.in
cthreads-compat.c
forward.c htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00
herrno.c
libc_pthread_init.c htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00
libpthread_pic.a htl: Fix linking static tests by factorizing the symbols list 2020-06-10 21:34:19 +00:00
libpthread_syms.a htl: Fix linking static tests by factorizing the symbols list 2020-06-10 21:34:19 +00:00
libpthread.a htl: Fix linking static tests by factorizing the symbols list 2020-06-10 21:34:19 +00:00
lockfile.c
Makefile htl: initialize first and prevent from unloading 2020-06-14 15:53:04 +00:00
pt-alloc.c htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00
pt-cancel.c
pt-cleanup.c htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00
pt-create.c Add the __libc_single_threaded variable 2020-07-06 11:15:58 +02:00
pt-dealloc.c
pt-detach.c
pt-exit.c
pt-getattr.c
pt-initialize.c
pt-internal.h htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00
pt-join.c
pt-self.c
pt-setcancelstate.c
pt-setcanceltype.c
pt-sigmask.c
pt-spin-inlines.c
pt-testcancel.c
pt-yield.c
register-atfork.c
shlib-versions
Versions htl: Move cleanup stack to variable shared between libc and pthread 2020-06-14 15:53:04 +00:00