glibc/sysdeps/unix/sysv/linux/sh
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
..
be Add the __libc_single_threaded variable 2020-07-06 11:15:58 +02:00
bits
le Add the __libc_single_threaded variable 2020-07-06 11:15:58 +02:00
sh3
sh4
sys
Implies
Makefile
Versions
____longjmp_chk.S
arch-syscall.h
atomic-machine.h
brk.c
c++-types.data
clone.S
configure
configure.ac
fxstat.c
fxstatat.c
jmp_buf-macros.h
kernel-features.h
kernel_sigaction.h
localplt.data
lowlevel-atomic.h
lxstat.c
makecontext.S
pipe.S
register-dump.h
shlib-versions
sigaltstack-offsets.sym
sigcontextinfo.h
smp.h
syscall.S
syscalls.list
sysdep.S
sysdep.h
vfork.S
xstat.c