Home
last modified time | relevance | path

Searched refs:thread1 (Results 1 – 25 of 41) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java55 private TestThread<Monitor> thread1; field in MonitorTestCase
65 tearDownStack.addTearDown(thread1 = new TestThread<Monitor>(monitor, "TestThread #1")); in setUp()
102 thread1.callAndAssertReturns(enter()); in testMutualExclusion()
104 thread1.callAndAssertReturns(leave()); in testMutualExclusion()
109 thread1.callAndAssertReturns(true, tryEnter()); in testTryEnter()
111 thread1.callAndAssertReturns(true, tryEnter()); in testTryEnter()
113 thread1.callAndAssertReturns(leave()); in testTryEnter()
115 thread1.callAndAssertReturns(leave()); in testTryEnter()
121 thread1.callAndAssertReturns(enter()); in testSystemStateMethods()
123 thread1.callAndAssertReturns(enter()); in testSystemStateMethods()
[all …]
DExecutionListTest.java87 Thread thread1 = new Thread(execute); in testExecute_idempotentConcurrently() local
89 thread1.start(); in testExecute_idempotentConcurrently()
93 thread1.join(); in testExecute_idempotentConcurrently()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
D1-1.c26 pthread_t thread1; variable
35 pthread_cancel(thread1); in alarm_handler()
80 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
112 pthread_join(thread1, NULL); in main()
D3-1.c25 pthread_t thread1; variable
34 pthread_cancel(thread1); in alarm_handler()
91 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
113 pthread_join(thread1, NULL); in main()
D2-1.c26 pthread_t thread1; variable
35 pthread_cancel(thread1); in alarm_handler()
94 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
126 pthread_join(thread1, NULL); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/
D3-2.c33 pthread_t thread1; variable
74 if (pthread_create(&thread1, NULL, a_thread_func, NULL) != 0) { in main()
80 pthread_join(thread1, NULL); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
D4-1.c68 pthread_t thread1; in main() local
80 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
87 pthread_join(thread1, &th_ret); in main()
D2-3.c70 pthread_t thread1; in main() local
83 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
93 if (pthread_join(thread1, (void *)&th_ret) != 0) { in main()
D2-2.c79 pthread_t thread1; in main() local
91 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
114 if (pthread_join(thread1, &th_ret) != 0) { in main()
D1-1.c81 pthread_t thread1; in main() local
92 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
117 pthread_join(thread1, NULL); in main()
D3-1.c85 pthread_t thread1; in main() local
96 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
121 pthread_join(thread1, NULL); in main()
D2-1.c100 pthread_t thread1; in main() local
111 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
136 pthread_join(thread1, NULL); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
D2-1.c95 pthread_t thread1; in main() local
112 if (pthread_create(&thread1, NULL, fn, NULL) != 0) { in main()
151 if (pthread_join(thread1, NULL) != 0) { in main()
D5-1.c140 pthread_t thread1, thread2; in main() local
144 if (pthread_create(&thread1, NULL, fn_wr_1, NULL) != 0) { in main()
172 if (pthread_join(thread1, NULL) != 0) { in main()
D1-1.c94 pthread_t thread0, thread1, thread2; in main() local
147 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { in main()
193 if (pthread_join(thread1, NULL) != 0) { in main()
D3-1.c114 pthread_t thread0, thread1, thread2; in main() local
167 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { in main()
214 if (pthread_join(thread1, NULL) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
D2-1.c90 pthread_t thread1; in main() local
108 if (pthread_create(&thread1, NULL, fn_rd, NULL) != 0) { in main()
143 if (pthread_join(thread1, NULL) != 0) { in main()
D5-1.c134 pthread_t thread1, thread2; in main() local
138 if (pthread_create(&thread1, NULL, fn_rd_1, NULL) != 0) { in main()
168 if (pthread_join(thread1, 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
91 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { in main()
137 if (pthread_join(thread1, 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
86 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { in main()
121 if (pthread_join(thread1, NULL) != 0) { in main()
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/
Dcontext_switch.c159 void *(*thread1)(void *); member
208 .thread1 = pipe_thread1,
247 .thread1 = yield_thread1,
377 .thread1 = futex_thread1,
488 start_fn(actions->thread1, NULL, cpu1); in main()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowProcessTest.java56 Thread thread1 = in myTid_returnsDifferentValuesForDifferentThreads() local
66 thread1.start(); in myTid_returnsDifferentValuesForDifferentThreads()
68 thread1.join(); in myTid_returnsDifferentValuesForDifferentThreads()
/external/libcap-ng/libcap-ng-0.7/src/test/
Dthread_test.c9 pthread_t thread1, thread2; variable
49 pthread_create(&thread1, NULL, thread1_main, NULL); in main()
/external/elfutils/tests/
Ddwfl-proc-attach.c44 static pthread_t thread1; variable
80 if ((err = pthread_create (&thread1, 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
48 thread1.join(); in TEST()

12