mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 10:22:41 +08:00
706ad1e7af
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> |
||
---|---|---|
.. | ||
auxv.h | ||
cdefs.h | ||
dir.h | ||
file.h | ||
ioctl.h | ||
mman.h | ||
param.h | ||
queue.h | ||
select.h | ||
single_threaded.h | ||
syslog.h | ||
sysmacros.h | ||
uio.h | ||
xattr.h |