Home
last modified time | relevance | path

Searched refs:thread2 (Results 1 – 25 of 63) sorted by relevance

123

/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java54 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/
DMonitorTestCase.java54 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/
Dplatform_thread_unittest.cc41 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()
Dcpu_time_unittest.cc67 PlatformThread thread2(WorkingFunction, reinterpret_cast<void*>(&counter2), in TEST()
70 thread2.Start(); in TEST()
72 thread2.Stop(); in TEST()
/external/perfetto/src/tracing/test/
Dplatform_unittest.cc63 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/
Ddwfl-proc-attach.c45 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/
Dcpu_thread_test.cc46 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/
Dsanitizers_unittest.cc106 IncrementThread thread2(&value); in DataRace() local
108 thread2.Start(); in DataRace()
110 thread2.Join(); in DataRace()
/external/libchrome/base/
Dtools_sanity_unittest.cc300 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/
Dbrw_structs.h107 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/
Dxplane_to_trace_events_test.cc40 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/
D1-1.c67 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/
D1-1.c74 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/
Dmain.cpp13 void thread2() { in thread2() function
26 std::thread thread_2(thread2); in main()
/external/rust/crates/quiche/deps/boringssl/src/crypto/pool/
Dpool_test.cc77 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/
Dpool_test.cc77 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/
Dmain.cpp24 thread2 () in thread2() function
47 std::thread thread_2(thread2); in main()
/external/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/thread_crash/
Dmain.cpp24 thread2 () in thread2() function
47 std::thread thread_2(thread2); in main()
/external/llvm-project/lldb/test/API/functionalities/thread/thread_exit/
Dmain.cpp24 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/
Dmain.cpp24 std::thread thread2(lambda); in main() local
27 thread2.join(); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
D5-1.c134 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/
D5-1.c140 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/
Dthread_test.c9 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/
DShadowProcessTest.java61 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/
Dcontext_switch.c156 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()

123