/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | MonitorTestCase.java | 55 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/ |
D | awakable_list_unittest.cc | 173 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/ |
D | thread_helpers_unittests.cc | 115 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/ |
D | 3-1.c | 25 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()
|
D | 1-1.c | 27 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()
|
D | 2-1.c | 27 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/ |
D | rwlock_race.c | 37 pthread_t thread1; in main() local 47 pthread_create(&thread1, 0, thread_func, 0); in main() 49 pthread_join(thread1, 0); in main()
|
D | std_atomic.cpp | 33 pthread_t thread1; in main() local 41 err = pthread_create(&thread1, NULL, &func1, NULL); in main() 48 err = pthread_join(thread1, NULL); in main()
|
D | std_list.cpp | 80 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/ |
D | 3-2.c | 34 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/ |
D | 4-1.c | 69 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()
|
D | 2-3.c | 71 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()
|
D | 2-2.c | 80 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()
|
D | 1-1.c | 82 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()
|
D | 3-1.c | 86 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()
|
D | 2-1.c | 101 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/ |
D | 2-1.c | 96 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()
|
D | 5-1.c | 141 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/ |
D | 2-1.c | 91 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()
|
D | 5-1.c | 135 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/ |
D | 1-1.c | 75 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/ |
D | 1-1.c | 68 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/ |
D | thread_test.c | 107 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/ |
D | context_switch.c | 148 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/ |
D | thread_test.c | 9 pthread_t thread1, thread2; variable 49 pthread_create(&thread1, NULL, thread1_main, NULL); in main()
|