Home
last modified time | relevance | path

Searched refs:thread1 (Results 1 – 25 of 49) 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 …]
/external/libmojo/mojo/edk/system/
Dawakable_list_unittest.cc173 test::SimpleWaiterThread thread1(&result1, &context1); in TEST() local
174 awakable_list.Add(thread1.waiter(), MOJO_HANDLE_SIGNAL_READABLE, 1); in TEST()
175 thread1.Start(); in TEST()
190 test::SimpleWaiterThread thread1(&result1, &context1); in TEST() local
191 awakable_list.Add(thread1.waiter(), MOJO_HANDLE_SIGNAL_READABLE, 3); in TEST()
192 thread1.Start(); in TEST()
200 awakable_list.Remove(thread1.waiter()); in TEST()
211 test::SimpleWaiterThread thread1(&result1, &context1); in TEST() local
212 awakable_list.Add(thread1.waiter(), MOJO_HANDLE_SIGNAL_READABLE, 5); in TEST()
213 thread1.Start(); in TEST()
[all …]
/external/libchrome/sandbox/linux/services/
Dthread_helpers_unittests.cc115 base::Thread thread1("sandbox_tests"); in SANDBOX_TEST() local
120 ThreadHelpers::StartThreadAndWatchProcFS(proc_fd.fd(), &thread1)); in SANDBOX_TEST()
125 thread1.Stop(); in SANDBOX_TEST()
142 base::Thread thread1("sandbox_tests"); in SANDBOX_DEATH_TEST() local
143 SANDBOX_ASSERT(thread1.Start()); in SANDBOX_DEATH_TEST()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
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()
D1-1.c27 pthread_t thread1; variable
36 pthread_cancel(thread1); in alarm_handler()
81 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
113 pthread_join(thread1, NULL); in main()
D2-1.c27 pthread_t thread1; variable
36 pthread_cancel(thread1); in alarm_handler()
95 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
127 pthread_join(thread1, NULL); in main()
/external/valgrind/drd/tests/
Drwlock_race.c37 pthread_t thread1; in main() local
47 pthread_create(&thread1, 0, thread_func, 0); in main()
49 pthread_join(thread1, 0); in main()
Dstd_atomic.cpp33 pthread_t thread1; in main() local
41 err = pthread_create(&thread1, NULL, &func1, NULL); in main()
48 err = pthread_join(thread1, NULL); in main()
Dstd_list.cpp80 pthread_t thread1; in main() local
86 err = pthread_create(&thread1, NULL, &func1, &instance1); in main()
93 err = pthread_join(thread1, NULL); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/
D3-2.c34 pthread_t thread1; variable
75 if (pthread_create(&thread1, NULL, a_thread_func, NULL) != 0) { in main()
81 pthread_join(thread1, NULL); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
D4-1.c69 pthread_t thread1; in main() local
81 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
88 pthread_join(thread1, &th_ret); in main()
D2-3.c71 pthread_t thread1; in main() local
84 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
94 if (pthread_join(thread1, (void *)&th_ret) != 0) { in main()
D2-2.c80 pthread_t thread1; in main() local
92 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
115 if (pthread_join(thread1, &th_ret) != 0) { in main()
D1-1.c82 pthread_t thread1; in main() local
93 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
118 pthread_join(thread1, NULL); in main()
D3-1.c86 pthread_t thread1; in main() local
97 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
122 pthread_join(thread1, NULL); in main()
D2-1.c101 pthread_t thread1; in main() local
112 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { in main()
137 pthread_join(thread1, NULL); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
D2-1.c96 pthread_t thread1; in main() local
113 if (pthread_create(&thread1, NULL, fn, NULL) != 0) { in main()
152 if (pthread_join(thread1, NULL) != 0) { in main()
D5-1.c141 pthread_t thread1, thread2; in main() local
145 if (pthread_create(&thread1, NULL, fn_wr_1, NULL) != 0) { in main()
173 if (pthread_join(thread1, NULL) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
D2-1.c91 pthread_t thread1; in main() local
109 if (pthread_create(&thread1, NULL, fn_rd, NULL) != 0) { in main()
144 if (pthread_join(thread1, NULL) != 0) { in main()
D5-1.c135 pthread_t thread1, thread2; in main() local
139 if (pthread_create(&thread1, NULL, fn_rd_1, NULL) != 0) { in main()
169 if (pthread_join(thread1, NULL) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/
D1-1.c75 pthread_t thread1, thread2; in main() local
92 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { in main()
138 if (pthread_join(thread1, NULL) != 0) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/
D1-1.c68 pthread_t thread1, thread2; in main() local
87 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { in main()
122 if (pthread_join(thread1, NULL) != 0) { in main()
/external/boringssl/src/crypto/
Dthread_test.c107 thread_t thread1, thread2; in test_once() local
108 if (!run_thread(&thread1, call_once_thread) || in test_once()
110 !wait_for_thread(thread1) || in test_once()
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/
Dcontext_switch.c148 void *(*thread1)(void *); member
197 .thread1 = pipe_thread1,
236 .thread1 = yield_thread1,
351 .thread1 = futex_thread1,
464 start_fn(actions->thread1, NULL, cpu1); in main()
/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()

12