Searched refs:pthread_internal_t (Results 1 - 20 of 20) sorted by relevance

/bionic/libc/bionic/
H A Dpthread_gettid_np.cpp32 return reinterpret_cast<pthread_internal_t*>(t)->tid;
H A Dpthread_internal.h58 class pthread_internal_t { class
60 class pthread_internal_t* next;
61 class pthread_internal_t* prev;
115 __LIBC_HIDDEN__ int __init_thread(pthread_internal_t* thread);
116 __LIBC_HIDDEN__ void __init_tls(pthread_internal_t* thread);
117 __LIBC_HIDDEN__ void __init_alternate_signal_stack(pthread_internal_t*);
119 __LIBC_HIDDEN__ pthread_t __pthread_internal_add(pthread_internal_t* thread);
120 __LIBC_HIDDEN__ pthread_internal_t* __pthread_internal_find(pthread_t pthread_id);
121 __LIBC_HIDDEN__ void __pthread_internal_remove(pthread_internal_t* thread);
122 __LIBC_HIDDEN__ void __pthread_internal_remove_and_free(pthread_internal_t* threa
[all...]
H A Dpthread_internal.cpp41 static pthread_internal_t* g_thread_list = NULL;
44 pthread_t __pthread_internal_add(pthread_internal_t* thread) {
57 void __pthread_internal_remove(pthread_internal_t* thread) {
70 static void __pthread_internal_free(pthread_internal_t* thread) {
72 // Free mapped space, including thread stack and pthread_internal_t.
77 void __pthread_internal_remove_and_free(pthread_internal_t* thread) {
82 pthread_internal_t* __pthread_internal_find(pthread_t thread_id) {
83 pthread_internal_t* thread = reinterpret_cast<pthread_internal_t*>(thread_id);
92 for (pthread_internal_t*
[all...]
H A Dgetpid.cpp36 pthread_internal_t* self = __get_thread();
H A D__cxa_thread_atexit_impl.cpp35 pthread_internal_t* thread = __get_thread();
42 pthread_internal_t* thread = __get_thread();
H A Dpthread_detach.cpp35 pthread_internal_t* thread = __pthread_internal_find(t);
H A Dpthread_getcpuclockid.cpp34 pthread_internal_t* thread = __pthread_internal_find(t);
H A Dpthread_getschedparam.cpp37 pthread_internal_t* thread = __pthread_internal_find(t);
H A Dpthread_kill.cpp40 pthread_internal_t* thread = __pthread_internal_find(t);
H A Dpthread_setschedparam.cpp37 pthread_internal_t* thread = __pthread_internal_find(t);
H A Dpthread_create.cpp55 void __init_tls(pthread_internal_t* thread) {
63 void __init_alternate_signal_stack(pthread_internal_t* thread) {
87 int __init_thread(pthread_internal_t* thread) {
142 static int __allocate_thread(pthread_attr_t* attr, pthread_internal_t** threadp, void** child_stack) {
149 mmap_size = BIONIC_ALIGN(attr->stack_size + sizeof(pthread_internal_t), PAGE_SIZE);
163 // pthread_internal_t
166 // To safely access the pthread_internal_t and thread stack, we need to find a 16-byte aligned boundary.
168 (reinterpret_cast<uintptr_t>(stack_top) - sizeof(pthread_internal_t)) & ~0xf);
170 pthread_internal_t* thread = reinterpret_cast<pthread_internal_t*>(stack_to
[all...]
H A Dpthread_exit.cpp47 pthread_internal_t* thread = __get_thread();
55 pthread_internal_t* thread = __get_thread();
66 pthread_internal_t* thread = __get_thread();
100 // The thread is detached, no one will use pthread_internal_t after pthread_exit.
101 // So we can free mapped space, which includes pthread_internal_t and thread stack.
106 // pthread_internal_t is freed below with stack, not here.
H A D__libc_init_main_thread.cpp44 // Note: this function creates a pthread_internal_t for the initial thread and
58 static pthread_internal_t main_thread;
71 // We also can't free the pthread_internal_t itself, since that lives on the main
73 // The main thread has no mmap allocated space for stack or pthread_internal_t.
H A Dfork.cpp39 pthread_internal_t* self = __get_thread();
H A Dpthread_join.cpp39 pthread_internal_t* thread = __pthread_internal_find(t);
H A Dpthread_setname_np.cpp60 pthread_internal_t* thread = __pthread_internal_find(t);
H A Dclone.cpp70 pthread_internal_t* self = __get_thread();
78 // 1. pthread_create gives its children their own pthread_internal_t with the correct pid.
H A Dpthread_attr.cpp200 pthread_internal_t* thread = reinterpret_cast<pthread_internal_t*>(t);
H A Dlibc_init_common.cpp110 pthread_internal_t* main_thread = __get_thread();
H A Dndk_cruft.cpp357 pthread_internal_t* __get_thread() {

Completed in 96 milliseconds