Searched refs:main_thread (Results 1 – 10 of 10) sorted by relevance
/aosp12/bionic/libc/bionic/ |
H A D | __libc_init_main_thread.cpp | 47 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() 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() 137 __init_thread(&main_thread); in __libc_init_main_thread_late() 139 __init_additional_stacks(&main_thread); in __libc_init_main_thread_late() 163 __init_tcb(new_tcb, &main_thread); in __libc_init_main_thread_final() 166 main_thread.mmap_base = mapping.mmap_base; in __libc_init_main_thread_final() [all …]
|
H A D | libc_init_common.cpp | 109 pthread_internal_t* main_thread = __get_thread(); in __libc_add_main_thread() local 110 __pthread_internal_add(main_thread); in __libc_add_main_thread()
|
/aosp12/system/bt/stack/btu/ |
H A D | btu_task.cc | 50 static MessageLoopThread main_thread("bt_main_thread", true); variable 89 bluetooth::common::MessageLoopThread* get_main_thread() { return &main_thread; } in get_main_thread() 93 if (!main_thread.DoInThread(from_here, std::move(task))) { in do_in_main_thread() 103 if (!main_thread.DoInThreadDelayed(from_here, std::move(task), delay)) { in do_in_main_thread_delayed() 119 main_thread.StartUp(); in main_thread_start_up() 120 if (!main_thread.IsRunning()) { in main_thread_start_up() 123 if (!main_thread.EnableRealTimeScheduling()) { in main_thread_start_up() 128 void main_thread_shut_down() { main_thread.ShutDown(); } in main_thread_shut_down()
|
/aosp12/system/bt/test/common/ |
H A D | main_handler.cc | 32 MessageLoopThread main_thread("bt_fake_main_thread", true); variable 39 ASSERT_LOG(main_thread.DoInThread(from_here, std::move(task)), in do_in_main_thread() 47 ASSERT_LOG(!main_thread.DoInThreadDelayed(from_here, std::move(task), delay), in do_in_main_thread_delayed() 58 main_thread.StartUp(); in main_thread_start_up() 59 ASSERT_LOG(main_thread.IsRunning(), in main_thread_start_up() 63 void main_thread_shut_down() { main_thread.ShutDown(); } in main_thread_shut_down()
|
/aosp12/system/core/debuggerd/libdebuggerd/ |
H A D | tombstone_proto.cpp | 195 main_thread); in dump_probable_cause() 201 const siginfo *si = main_thread.siginfo; in dump_probable_cause() 627 result.set_pid(main_thread.pid); in engrave_tombstone_proto() 628 result.set_tid(main_thread.tid); in engrave_tombstone_proto() 629 result.set_uid(main_thread.uid); in engrave_tombstone_proto() 637 if (!main_thread.siginfo) { in engrave_tombstone_proto() 642 sig.set_number(main_thread.signo); in engrave_tombstone_proto() 643 sig.set_name(get_signame(main_thread.siginfo)); in engrave_tombstone_proto() 644 sig.set_code(main_thread.siginfo->si_code); in engrave_tombstone_proto() 647 if (signal_has_sender(main_thread.siginfo, main_thread.pid)) { in engrave_tombstone_proto() [all …]
|
H A D | tombstone_proto_to_text.cpp | 443 const auto& main_thread = main_thread_it->second; in tombstone_proto_to_text() local 445 print_main_thread(callback, tombstone, main_thread); in tombstone_proto_to_text()
|
/aosp12/art/test/931-agent-thread/ |
H A D | agent_thread.cc | 35 AgentData() : main_thread(nullptr), in AgentData() 40 jthread main_thread; member 54 CHECK(!env->IsSameObject(this_thread, data->main_thread)); in AgentMain() 134 jthread main_thread; in Java_art_Test931_testAgentThread() local 135 jvmtiError main_thread_result = jvmti_env->GetCurrentThread(&main_thread); in Java_art_Test931_testAgentThread() 141 data.main_thread = env->NewGlobalRef(main_thread); in Java_art_Test931_testAgentThread() 172 env->DeleteGlobalRef(data.main_thread); in Java_art_Test931_testAgentThread()
|
/aosp12/bionic/tests/ |
H A D | android_unsafe_frame_pointer_chase_test.cpp | 67 TEST(android_unsafe_frame_pointer_chase, main_thread) { in TEST() argument
|
H A D | stdlib_test.cpp | 432 pthread_t main_thread = reinterpret_cast<pthread_t>(arg); in TestBug57421_child() local 433 pthread_join(main_thread, nullptr); in TestBug57421_child()
|
H A D | pthread_test.cpp | 318 pthread_t main_thread; member 323 data.main_thread = pthread_self(); in main() 343 pthread_t main_thread = data->main_thread; in thread_fn() local 349 pthread_join(main_thread, nullptr); in thread_fn()
|