Lines Matching refs:thread_data

584   thread_t thread_data = { 0, 0, 0, nullptr };  in TEST_F()  local
586 ASSERT_TRUE(pthread_create(&thread, &attr, ThreadLevelRun, &thread_data) == 0); in TEST_F()
589 ASSERT_TRUE(WaitForNonZero(&thread_data.state, 2)); in TEST_F()
601 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
609 android_atomic_acquire_store(0, &thread_data.state); in TEST_F()
634 thread_t thread_data = { 0, 0, 0, nullptr }; in TEST_F() local
636 ASSERT_TRUE(pthread_create(&thread, &attr, ThreadLevelRun, &thread_data) == 0); in TEST_F()
639 ASSERT_TRUE(WaitForNonZero(&thread_data.state, 2)); in TEST_F()
641 std::unique_ptr<Backtrace> all(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
646 std::unique_ptr<Backtrace> ign1(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
651 std::unique_ptr<Backtrace> ign2(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
659 android_atomic_acquire_store(0, &thread_data.state); in TEST_F()
676 thread_t thread_data = { 0, 0, 0, nullptr }; in TEST_F() local
678 ASSERT_TRUE(pthread_create(&thread, &attr, ThreadMaxRun, &thread_data) == 0); in TEST_F()
681 ASSERT_TRUE(WaitForNonZero(&thread_data.state, 2)); in TEST_F()
683 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
691 android_atomic_acquire_store(0, &thread_data.state); in TEST_F()
1014 thread_t* thread_data = reinterpret_cast<thread_t*>(data); in ThreadReadTest() local
1016 thread_data->tid = android::base::GetThreadId(); in ThreadReadTest()
1033 thread_data->data = memory; in ThreadReadTest()
1036 android_atomic_acquire_store(1, &thread_data->state); in ThreadReadTest()
1039 while (thread_data->state) { in ThreadReadTest()
1049 android_atomic_acquire_store(1, &thread_data->state); in ThreadReadTest()
1097 thread_t thread_data = { 0, 0, 0, nullptr }; in TEST_F() local
1098 ASSERT_TRUE(pthread_create(&thread, &attr, ThreadReadTest, &thread_data) == 0); in TEST_F()
1100 ASSERT_TRUE(WaitForNonZero(&thread_data.state, 10)); in TEST_F()
1102 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
1105 RunReadTest(backtrace.get(), reinterpret_cast<uint64_t>(thread_data.data)); in TEST_F()
1107 android_atomic_acquire_store(0, &thread_data.state); in TEST_F()
1109 ASSERT_TRUE(WaitForNonZero(&thread_data.state, 10)); in TEST_F()
1887 thread_t thread_data = { 0, 0, 0, nullptr }; in TEST_F() local
1889 ASSERT_TRUE(pthread_create(&thread, nullptr, ThreadLevelRun, &thread_data) == 0); in TEST_F()
1892 ASSERT_TRUE(WaitForNonZero(&thread_data.state, 2)); in TEST_F()
1894 CheckForLeak(BACKTRACE_CURRENT_PROCESS, thread_data.tid); in TEST_F()
1897 android_atomic_acquire_store(0, &thread_data.state); in TEST_F()