Home
last modified time | relevance | path

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

12

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java56 private TestThread<Monitor> thread2; field in MonitorTestCase
66 tearDownStack.addTearDown(thread2 = new TestThread<Monitor>(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 …]
DThreadFactoryBuilderTest.java76 Thread thread2 = threadFactory.newThread(monitoredRunnable); in testThreadFactoryBuilder_defaults() local
77 checkThreadPoolName(thread2, 2); in testThreadFactoryBuilder_defaults()
80 thread2.getName().substring(0, thread.getName().lastIndexOf('-'))); in testThreadFactoryBuilder_defaults()
87 thread2.getName().substring(0, thread.getName().lastIndexOf('-'))) in testThreadFactoryBuilder_defaults()
DExecutionListTest.java88 Thread thread2 = new Thread(execute); in testExecute_idempotentConcurrently() local
90 thread2.start(); in testExecute_idempotentConcurrently()
94 thread2.join(); in testExecute_idempotentConcurrently()
/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/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/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_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()
D1-1.c94 pthread_t thread0, thread1, thread2; in main() local
208 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { in main()
D3-1.c114 pthread_t thread0, thread1, thread2; in main() local
229 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { 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/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/
Dcontext_switch.c160 void *(*thread2)(void *); member
209 .thread2 = pipe_thread2,
248 .thread2 = yield_thread2,
378 .thread2 = futex_thread2,
489 start_fn(actions->thread2, NULL, cpu2); 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/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/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
Dcpuset_memory_test.c326 pthread_t thread2; in main() local
339 pthread_create(&thread2, NULL, thread2_routine, NULL); in main()
382 pthread_cancel(thread2); in main()
383 pthread_join(thread2, &retv); in main()
/external/elfutils/tests/
Ddwfl-proc-attach.c45 static pthread_t thread2; variable
82 if ((err = pthread_create (&thread2, NULL, sleeper, NULL)) != 0) in main()
/external/boringssl/src/crypto/
Dthread_test.cc47 std::thread thread1(call_once_func), thread2(call_once_func); in TEST() local
49 thread2.join(); in TEST()
/external/libchrome/base/process/
Dprocess_metrics_unittest.cc336 Thread thread2("thread2"); in TEST_F() local
340 thread2.StartAndWaitForTesting(); in TEST_F()
344 ASSERT_TRUE(thread2.IsRunning()); in TEST_F()
352 thread2.task_runner()->PostTask(FROM_HERE, BindOnce(&BusyWork, &vec2)); in TEST_F()
365 thread2.Stop(); in TEST_F()
/external/boringssl/src/crypto/chacha/asm/
Dchacha-armv8.pl453 my @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,0);
459 eval(shift(@thread2)); eval(shift(@thread3));
464 @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,1);
470 eval(shift(@thread2)); eval(shift(@thread3));
797 my @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,0);
808 eval(shift(@thread2)); eval(shift(@thread67));
816 @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,1);
825 eval(shift(@thread2)); eval(shift(@thread67));
911 @thread2=&NEONROUND($A2,$B2,$C2,$D2,$T2,0);
920 eval(shift(@thread2)); eval(shift(@thread67));
[all …]
Dchacha-armv4.pl738 my @thread2=&NEONROUND($a2,$b2,$c2,$d2,$t2,0);
744 eval(shift(@thread2)); eval(shift(@thread3));
749 @thread2=&NEONROUND($a2,$b2,$c2,$d2,$t2,1);
755 eval(shift(@thread2)); eval(shift(@thread3));
/external/webrtc/webrtc/base/
Dlogging_unittest.cc105 LogThread thread1, thread2, thread3; in TEST() local
107 thread2.Start(); in TEST()
/external/sfntly/cpp/src/test/
Dlock_test.cc211 MutexLockTestThread thread2(&lock, &value); in MutexFourThreads() local
218 EXPECT_TRUE(PlatformThread::Create(&thread2, &handle2)); in MutexFourThreads()
/external/libchrome/base/synchronization/
Dlock_unittest.cc238 MutexLockTestThread thread2(&lock, &value); in TEST() local
245 ASSERT_TRUE(PlatformThread::Create(0, &thread2, &handle2)); in TEST()
/external/llvm/test/Transforms/JumpThreading/
Dselect.ll283 ; CHECK: br i1 %cmp.i, label %.exit.thread2, label %cond.false.i
285 ; CHECK: br i1 %cmp8.i, label %.exit.thread2, label %cond.false.10.i
287 ; CHECK: br i1 %phitmp, label %.exit.thread, label %.exit.thread2
288 ; CHECK: br label %.exit.thread2
/external/libxml2/python/tests/
DMakefile.am40 thread2.py \
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/JumpThreading/
Dselect.ll284 ; CHECK: br i1 %cmp.i, label %.exit.thread2, label %cond.false.i
286 ; CHECK: br i1 %cmp8.i, label %.exit.thread2, label %cond.false.10.i
288 ; CHECK: br i1 %phitmp, label %.exit.thread, label %.exit.thread2
289 ; CHECK: br label %.exit.thread2

12