1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Replace __libc_multiple_threads with __libc_single_threaded

And also fixes the SINGLE_THREAD_P macro for SINGLE_THREAD_BY_GLOBAL,
since header inclusion single-thread.h is in the wrong order, the define
needs to come before including sysdeps/unix/sysdep.h.  The macro
is now moved to a per-arch single-threade.h header.

The SINGLE_THREAD_P is used on some more places.

Checked on aarch64-linux-gnu and x86_64-linux-gnu.
This commit is contained in:
Adhemerval Zanella
2022-06-07 13:09:40 -03:00
parent af1aa36c61
commit e070501d12
22 changed files with 22 additions and 61 deletions

View File

@ -32,8 +32,6 @@
#undef SYS_ify
#define SYS_ify(syscall_name) __NR_##syscall_name
#define SINGLE_THREAD_BY_GLOBAL 1
#ifdef __ASSEMBLER__
#include <asm/pal.h>
#include <alpha/regdef.h>