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()
112 __set_tid_address(&main_thread.tid); in __libc_init_main_thread_late()
114 pthread_attr_init(&main_thread.attr); in __libc_init_main_thread_late()
116 pthread_attr_setinheritsched(&main_thread.attr, PTHREAD_INHERIT_SCHED); in __libc_init_main_thread_late()
118 pthread_attr_setguardsize(&main_thread.attr, 0); in __libc_init_main_thread_late()
120 pthread_attr_setstacksize(&main_thread.attr, 0); in __libc_init_main_thread_late()
[all …]
Dlibc_init_common.cpp89 pthread_internal_t* main_thread = __get_thread(); in __libc_add_main_thread() local
90 __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.cpp432 pthread_t main_thread = reinterpret_cast<pthread_t>(arg); in TestBug57421_child() local
433 pthread_join(main_thread, nullptr); in TestBug57421_child()
Dpthread_test.cpp316 pthread_t main_thread; member
321 data.main_thread = pthread_self(); in main()
341 pthread_t main_thread = data->main_thread; in thread_fn() local
347 pthread_join(main_thread, nullptr); in thread_fn()