7 #if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
9 # ifdef IS_IN_libpthread
10 # define __local_multiple_threads __pthread_multiple_threads
11 # elif !defined NOT_IN_libc
12 # define __local_multiple_threads __libc_multiple_threads
15 # if defined IS_IN_libpthread || !defined NOT_IN_libc
16 extern int __local_multiple_threads attribute_hidden
;
17 # define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
19 # define SINGLE_THREAD_P \
20 __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
21 header.multiple_threads) == 0, 1)
26 # define SINGLE_THREAD_P 1
27 # define NO_CANCELLATION 1
31 #define RTLD_SINGLE_THREAD_P \
32 __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
33 header.multiple_threads) == 0, 1)