/aosp12/bionic/libc/bionic/ |
H A D | pthread_exit.cpp | 53 pthread_internal_t* thread = __get_thread(); in __pthread_cleanup_push() 62 pthread_internal_t* thread = __get_thread(); in __pthread_cleanup_pop() 74 pthread_internal_t* thread = __get_thread(); in pthread_exit()
|
H A D | __cxa_thread_atexit_impl.cpp | 42 pthread_internal_t* thread = __get_thread(); in __cxa_thread_atexit_impl() 52 pthread_internal_t* thread = __get_thread(); in __cxa_thread_finalize()
|
H A D | clone.cpp | 48 pthread_internal_t* self = __get_thread(); in __start_thread() 88 pthread_internal_t* self = __get_thread(); in clone()
|
H A D | pthread_rwlock.cpp | 291 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { in __pthread_rwlock_timedrdlock() 354 atomic_store_explicit(&rwlock->writer_tid, __get_thread()->tid, memory_order_relaxed); in __pthread_rwlock_trywrlock() 363 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { in __pthread_rwlock_timedwrlock() 491 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) != __get_thread()->tid) { in pthread_rwlock_unlock()
|
H A D | ndk_cruft.cpp | 361 #define __get_thread __real_get_thread macro 363 #undef __get_thread 368 pthread_internal_t* __get_thread() { in __get_thread() function
|
H A D | fdsan.cpp | 241 if (__get_thread()->is_vforked()) { in android_fdsan_close_with_tag() 295 if (__get_thread()->is_vforked()) { in android_fdsan_exchange_owner_tag() 335 if (__get_thread()->is_vforked()) { in android_fdsan_set_error_level()
|
H A D | pthread_internal.cpp | 95 if (thread == __get_thread()) return thread; in __pthread_internal_find() 169 if (t == __get_thread()) continue; in android_run_on_all_threads()
|
H A D | __errno.cpp | 35 return &__get_thread()->errno_value; in __errno()
|
H A D | pthread_self.cpp | 32 return reinterpret_cast<pthread_t>(__get_thread()); in pthread_self()
|
H A D | gettid.cpp | 35 pthread_internal_t* self = __get_thread(); in gettid()
|
H A D | pthread_mutex.cpp | 149 pid_t tid = __get_thread()->tid; in PIMutexTryLock() 192 pid_t tid = __get_thread()->tid; in PIMutexUnlock() 723 pid_t tid = __get_thread()->tid; in MutexLockWithTimeout() 870 pid_t tid = __get_thread()->tid; in pthread_mutex_unlock() 919 pid_t tid = __get_thread()->tid; in pthread_mutex_trylock()
|
H A D | getpid.cpp | 36 pthread_internal_t* self = __get_thread(); in __get_cached_pid()
|
H A D | fork.cpp | 39 pthread_internal_t* self = __get_thread(); in __clone_for_fork()
|
H A D | android_unsafe_frame_pointer_chase.cpp | 38 return __get_thread()->stack_top; in __get_thread_stack_top()
|
H A D | pthread_internal.h | 198 static inline __always_inline pthread_internal_t* __get_thread() { in __get_thread() function
|
H A D | libc_init_common.cpp | 109 pthread_internal_t* main_thread = __get_thread(); in __libc_add_main_thread()
|
H A D | pthread_create.cpp | 315 pthread_internal_t* thread = __get_thread(); in __set_stack_and_tls_vma_name()
|
/aosp12/bionic/libc/private/ |
H A D | bionic_fdtrack.h | 52 !__predict_false(__get_thread()->is_vforked())) { \ 83 !__predict_false(__get_thread()->is_vforked())) { \
|
/aosp12/bionic/linker/ |
H A D | dlfcn.cpp | 100 char* old_value = __get_thread()->current_dlerror; in __bionic_set_dlerror() 101 __get_thread()->current_dlerror = new_value; in __bionic_set_dlerror() 108 char* buffer = __get_thread()->dlerror_buffer; in __bionic_format_dlerror()
|
/aosp12/frameworks/libs/native_bridge_support/linker/ |
H A D | __libc_init_main_thread.cpp | 53 __get_tls()[TLS_SLOT_BIONIC_TLS] = __get_thread()->bionic_tls; in __libc_init_main_thread_late()
|
/aosp12/bionic/tests/ |
H A D | unistd_test.cpp | 442 pthread_internal_t* self = __get_thread(); in TEST()
|
/aosp12/bionic/libc/ |
H A D | libc.map.txt | 1670 __get_thread; # arm x86
|
/aosp12/bionic/tools/versioner/platforms/ |
H A D | libc.map.txt | 1670 __get_thread; # arm x86
|
/aosp12/bionic/docs/ |
H A D | elf-tls.md | 834 somewhere (a global variable, another TLS slot, ...). `__get_thread()` already uses a TLS slot to
|