Home
last modified time | relevance | path

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

/aosp12/bionic/libc/bionic/
H A 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()
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 Dlibc_init_common.cpp109 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 Dbtu_task.cc50 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 Dmain_handler.cc32 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 Dtombstone_proto.cpp195 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 Dtombstone_proto_to_text.cpp443 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 Dagent_thread.cc35 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 Dandroid_unsafe_frame_pointer_chase_test.cpp67 TEST(android_unsafe_frame_pointer_chase, main_thread) { in TEST() argument
H A 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()
H A Dpthread_test.cpp318 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()