glibc/sysdeps/unix/sysv/linux/x86_64
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
..
64 Add the __libc_single_threaded variable 2020-07-06 11:15:58 +02:00
x32 Add the __libc_single_threaded variable 2020-07-06 11:15:58 +02:00
Implies
Makefile
Versions
____longjmp_chk.S
__start_context.S
brk.c
clone.S
compat-timer.h
configure
configure.ac
dl-cache.h
dl-procinfo.c
dl-procinfo.h
getcontext.S
kernel-features.h
kernel_stat.h
ldconfig.h
ldd-rewrite.sed
libmvec.abilist
makecontext.c
readelflib.c
register-dump.h
setcontext.S
sigaction.c
sigaltstack-offsets.sym
sigcontextinfo.h
swapcontext.S
syscall.S
syscalls.list
sysdep.S
sysdep.h Add SYSCALL_ULONG_ARG_[12] to pass long to syscall [BZ #25810] 2020-04-29 05:35:34 -07:00
timer_create.c
timer_delete.c
timer_getoverr.c
timer_gettime.c
timer_settime.c
ucontext_i.sym
vfork.S