/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | MonitorTestCase.java | 54 private TestThread<Monitor> thread2; field in MonitorTestCase 65 tearDownStack.addTearDown(thread2 = new TestThread<>(monitor, "TestThread #2")); in setUp() 103 thread2.callAndAssertBlocks(enter()); in testMutualExclusion() 105 thread2.assertPriorCallReturns(enter()); in testMutualExclusion() 110 thread2.callAndAssertReturns(false, tryEnter()); in testTryEnter() 112 thread2.callAndAssertReturns(false, tryEnter()); in testTryEnter() 114 thread2.callAndAssertReturns(false, tryEnter()); in testTryEnter() 116 thread2.callAndAssertReturns(true, tryEnter()); in testTryEnter() 136 thread2.callAndAssertReturns(enterCount != 0, "isOccupied"); in checkSystemStateMethods() 137 thread2.callAndAssertReturns(false, "isOccupiedByCurrentThread"); in checkSystemStateMethods() [all …]
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | MonitorTestCase.java | 54 private TestThread<Monitor> thread2; field in MonitorTestCase 65 tearDownStack.addTearDown(thread2 = new TestThread<>(monitor, "TestThread #2")); in setUp() 103 thread2.callAndAssertBlocks(enter()); in testMutualExclusion() 105 thread2.assertPriorCallReturns(enter()); in testMutualExclusion() 110 thread2.callAndAssertReturns(false, tryEnter()); in testTryEnter() 112 thread2.callAndAssertReturns(false, tryEnter()); in testTryEnter() 114 thread2.callAndAssertReturns(false, tryEnter()); in testTryEnter() 116 thread2.callAndAssertReturns(true, tryEnter()); in testTryEnter() 136 thread2.callAndAssertReturns(enterCount != 0, "isOccupied"); in checkSystemStateMethods() 137 thread2.callAndAssertReturns(false, "isOccupiedByCurrentThread"); in checkSystemStateMethods() [all …]
|
/external/webrtc/rtc_base/ |
D | platform_thread_unittest.cc | 41 PlatformThread thread2(&NullRunFunction, nullptr, "PlatformThreadTest2"); in TEST() local 42 EXPECT_TRUE(thread1.GetThreadRef() == thread2.GetThreadRef()); in TEST() 44 thread2.Start(); in TEST() 45 EXPECT_TRUE(thread1.GetThreadRef() != thread2.GetThreadRef()); in TEST() 46 thread2.Stop(); in TEST()
|
D | cpu_time_unittest.cc | 67 PlatformThread thread2(WorkingFunction, reinterpret_cast<void*>(&counter2), in TEST() 70 thread2.Start(); in TEST() 72 thread2.Stop(); in TEST()
|
/external/perfetto/src/tracing/test/ |
D | platform_unittest.cc | 63 auto thread2 = platform->CreateTaskRunner(tr_args); in TEST() local 64 ASSERT_TRUE(thread2); in TEST() 69 thread2->PostTask([] { GetTLS()->generation = 102; }); in TEST() 88 thread2->PostTask([&] { in TEST() 105 thread2.reset(); in TEST()
|
/external/elfutils/tests/ |
D | dwfl-proc-attach.c | 45 static pthread_t thread2; variable 82 if ((err = pthread_create (&thread2, NULL, sleeper, NULL)) != 0) in main() 103 pthread_cancel (thread2); in main() 105 pthread_join (thread2, NULL); in main()
|
/external/libyuv/files/unit_test/ |
D | cpu_thread_test.cc | 46 pthread_t thread2; in TEST() local 51 ret = pthread_create(&thread2, nullptr, ThreadMain, &cpu_flags2); in TEST() 55 ret = pthread_join(thread2, nullptr); in TEST()
|
/external/webrtc/rtc_tools/ |
D | sanitizers_unittest.cc | 106 IncrementThread thread2(&value); in DataRace() local 108 thread2.Start(); in DataRace() 110 thread2.Join(); in DataRace()
|
/external/libchrome/base/ |
D | tools_sanity_unittest.cc | 300 TOOLS_SANITY_TEST_CONCURRENT_THREAD thread1(shared), thread2(shared); in DataRace() local 301 RunInParallel(&thread1, &thread2); in DataRace() 322 TOOLS_SANITY_TEST_CONCURRENT_THREAD thread1(&shared), thread2(&shared); in TEST() local 323 RunInParallel(&thread1, &thread2); in TEST() 330 AcquireLoadThread thread2(&shared); in TEST() local 331 RunInParallel(&thread1, &thread2); in TEST()
|
/external/igt-gpu-tools/assembler/ |
D | brw_structs.h | 107 struct thread2 struct 149 struct thread2 thread2; member 389 struct thread2 thread2; member 456 struct thread2 thread2; member 500 struct thread2 thread2; member 535 struct thread2 thread2; member
|
/external/tensorflow/tensorflow/core/profiler/convert/ |
D | xplane_to_trace_events_test.cc | 40 XLineBuilder thread2 = host_plane.GetOrCreateLine(20); in CreateXSpace() local 41 thread2.SetName("thread2"); in CreateXSpace() 43 thread2.AddEvent(*host_plane.GetOrCreateEventMetadata("event2")); in CreateXSpace()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/ |
D | 1-1.c | 67 pthread_t thread1, thread2; in main() local 142 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { in main() 173 if (pthread_join(thread2, NULL) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/ |
D | 1-1.c | 74 pthread_t thread1, thread2; in main() local 153 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { in main() 178 if (pthread_join(thread2, NULL) != 0) { in main()
|
/external/llvm-project/lldb/test/API/functionalities/thread/ignore_suspended/ |
D | main.cpp | 13 void thread2() { in thread2() function 26 std::thread thread_2(thread2); in main()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/pool/ |
D | pool_test.cc | 77 std::thread thread2([&] { in TEST() local 82 thread2.join(); in TEST() 143 std::thread thread2([&] { buf3.reset(); }); in TEST() local 146 thread2.join(); in TEST()
|
/external/boringssl/src/crypto/pool/ |
D | pool_test.cc | 77 std::thread thread2([&] { in TEST() local 82 thread2.join(); in TEST() 143 std::thread thread2([&] { buf3.reset(); }); in TEST() local 146 thread2.join(); in TEST()
|
/external/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/gcore/ |
D | main.cpp | 24 thread2 () in thread2() function 47 std::thread thread_2(thread2); in main()
|
/external/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/thread_crash/ |
D | main.cpp | 24 thread2 () in thread2() function 47 std::thread thread_2(thread2); in main()
|
/external/llvm-project/lldb/test/API/functionalities/thread/thread_exit/ |
D | main.cpp | 24 thread2 () in thread2() function 49 std::thread thread_2(thread2); // Set first breakpoint here in main()
|
/external/llvm-project/lldb/test/API/api/multiple-targets/ |
D | main.cpp | 24 std::thread thread2(lambda); in main() local 27 thread2.join(); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
D | 5-1.c | 134 pthread_t thread1, thread2; in main() local 175 if (pthread_create(&thread2, NULL, fn_rd_2, NULL) != 0) { in main() 205 if (pthread_join(thread2, NULL) != 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
D | 5-1.c | 140 pthread_t thread1, thread2; in main() local 179 if (pthread_create(&thread2, NULL, fn_wr_2, NULL) != 0) { in main() 207 if (pthread_join(thread2, NULL) != 0) { in main()
|
/external/libcap-ng/libcap-ng-0.7/src/test/ |
D | thread_test.c | 9 pthread_t thread1, thread2; variable 50 pthread_create(&thread2, NULL, thread2_main, NULL); in main()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowProcessTest.java | 61 Thread thread2 = in myTid_returnsDifferentValuesForDifferentThreads() local 67 thread2.start(); in myTid_returnsDifferentValuesForDifferentThreads() 69 thread2.join(); in myTid_returnsDifferentValuesForDifferentThreads()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/ |
D | context_switch.c | 156 void *(*thread2)(void *); member 205 .thread2 = pipe_thread2, 244 .thread2 = yield_thread2, 374 .thread2 = futex_thread2, 485 start_fn(actions->thread2, NULL, cpu2); in main()
|