mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nptl: Export __libc_multiple_threads from libc as an internal symbol
This allows the elimination of the __libc_multiple_threads_ptr variable in libpthread and its initialization procedure. Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
/* Variable set to a nonzero value either if more than one thread runs or ran,
|
||||
or if a single-threaded process is trying to cancel itself. See
|
||||
nptl/descr.h for more context on the single-threaded process case. */
|
||||
int __libc_multiple_threads attribute_hidden;
|
||||
int __libc_multiple_threads __attribute__ ((nocommon));
|
||||
libc_hidden_data_def (__libc_multiple_threads)
|
||||
# endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user