Lines Matching refs:thread
79 thread_t thread;
211 thread_t* thread = reinterpret_cast<thread_t*>(data);
212 android_atomic_acquire_store(1, &thread->state);
214 while (thread->state) {
444 pthread_t thread;
445 ASSERT_TRUE(pthread_create(&thread, &attr, PtraceThreadLevelRun, nullptr) == 0);
502 thread_t* thread = reinterpret_cast<thread_t*>(data);
504 thread->tid = gettid();
515 pthread_t thread;
516 ASSERT_TRUE(pthread_create(&thread, &attr, ThreadLevelRun, &thread_data) == 0);
521 // Make sure that the thread signal used is not visible when compiled for
538 // Tell the thread to exit its infinite loop.
565 pthread_t thread;
566 ASSERT_TRUE(pthread_create(&thread, &attr, ThreadLevelRun, &thread_data) == 0);
588 // Tell the thread to exit its infinite loop.
593 thread_t* thread = reinterpret_cast<thread_t*>(data);
595 thread->tid = gettid();
606 pthread_t thread;
607 ASSERT_TRUE(pthread_create(&thread, &attr, ThreadMaxRun, &thread_data) == 0);
619 // Tell the thread to exit its infinite loop.
632 dump->backtrace = Backtrace::Create(getpid(), dump->thread.tid);
664 dumpers[i].thread.tid = runners[i].tid;
665 dumpers[i].thread.state = 0;
669 ASSERT_TRUE(pthread_create(&dumpers[i].thread.threadId, &attr, ThreadDump, &dumpers[i]) == 0);
678 // Tell the runner thread to exit its infinite loop.
704 // Dump the same thread NUM_THREADS simultaneously.
707 dumpers[i].thread.tid = runner.tid;
708 dumpers[i].thread.state = 0;
712 ASSERT_TRUE(pthread_create(&dumpers[i].thread.threadId, &attr, ThreadDump, &dumpers[i]) == 0);
728 // Tell the runner thread to exit its infinite loop.
819 frame.map.name = "[anon:thread signal stack]";
821 EXPECT_EQ("#01 pc 0000000000000020 [anon:thread signal stack:00000000000c0000]",
823 EXPECT_EQ("#01 pc 00000020 [anon:thread signal stack:000c0000]",
1019 pthread_t thread;
1021 ASSERT_TRUE(pthread_create(&thread, &attr, ThreadReadTest, &thread_data) == 0);
1790 pthread_t thread;
1791 ASSERT_TRUE(pthread_create(&thread, nullptr, ThreadLevelRun, &thread_data) == 0);
1798 // Tell the thread to exit its infinite loop.
1801 ASSERT_TRUE(pthread_join(thread, nullptr) == 0);