Home
last modified time | relevance | path

Searched refs:main_thread (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/bionic/
D__libc_init_main_thread.cpp47 static pthread_internal_t main_thread; variable
79 __init_tcb(temp_tcb, &main_thread); in __libc_init_main_thread_early()
82 main_thread.tid = __getpid(); in __libc_init_main_thread_early()
83 main_thread.set_cached_pid(main_thread.tid); in __libc_init_main_thread_early()
84 main_thread.stack_top = reinterpret_cast<uintptr_t>(args.argv); in __libc_init_main_thread_early()
125 __set_tid_address(&main_thread.tid); in __libc_init_main_thread_late()
127 pthread_attr_init(&main_thread.attr); in __libc_init_main_thread_late()
129 pthread_attr_setinheritsched(&main_thread.attr, PTHREAD_INHERIT_SCHED); in __libc_init_main_thread_late()
131 pthread_attr_setguardsize(&main_thread.attr, 0); in __libc_init_main_thread_late()
133 pthread_attr_setstacksize(&main_thread.attr, 0); in __libc_init_main_thread_late()
[all …]
Dlibc_init_common.cpp156 pthread_internal_t* main_thread = __get_thread(); in __libc_add_main_thread() local
157 __pthread_internal_add(main_thread); in __libc_add_main_thread()
/bionic/tests/
Dandroid_unsafe_frame_pointer_chase_test.cpp67 TEST(android_unsafe_frame_pointer_chase, main_thread) { in TEST() argument
Dstdlib_test.cpp434 pthread_t main_thread = reinterpret_cast<pthread_t>(arg); in TestBug57421_child() local
435 pthread_join(main_thread, nullptr); in TestBug57421_child()
Dpthread_test.cpp345 pthread_t main_thread; member
350 data.main_thread = pthread_self(); in main()
370 pthread_t main_thread = data->main_thread; in thread_fn() local
376 pthread_join(main_thread, nullptr); in thread_fn()