/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
H A D | MonitorTestCase.java | 55 private TestThread<Monitor> thread1; field in class:MonitorTestCase 65 tearDownStack.addTearDown(thread1 = new TestThread<Monitor>(monitor, "TestThread #1")); 102 thread1.callAndAssertReturns(enter()); 104 thread1.callAndAssertReturns(leave()); 109 thread1.callAndAssertReturns(true, tryEnter()); 111 thread1.callAndAssertReturns(true, tryEnter()); 113 thread1.callAndAssertReturns(leave()); 115 thread1.callAndAssertReturns(leave()); 121 thread1.callAndAssertReturns(enter()); 123 thread1 [all...] |
/external/valgrind/drd/tests/ |
H A D | rwlock_race.c | 37 pthread_t thread1; local 47 pthread_create(&thread1, 0, thread_func, 0); 49 pthread_join(thread1, 0);
|
H A D | std_atomic.cpp | 33 pthread_t thread1; local 41 err = pthread_create(&thread1, NULL, &func1, NULL); 48 err = pthread_join(thread1, NULL);
|
H A D | std_list.cpp | 80 pthread_t thread1; local 86 err = pthread_create(&thread1, NULL, &func1, &instance1); 93 err = pthread_join(thread1, NULL);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/ |
H A D | 3-2.c | 34 pthread_t thread1; variable 75 if (pthread_create(&thread1, NULL, a_thread_func, NULL) != 0) { 81 pthread_join(thread1, NULL);
|
/external/libcap-ng/libcap-ng-0.7/src/test/ |
H A D | thread_test.c | 9 pthread_t thread1, thread2; variable 15 printf("thread1 filled capabilities\n"); 49 pthread_create(&thread1, NULL, thread1_main, NULL);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/ |
H A D | 1-1.c | 27 pthread_t thread1; variable 36 pthread_cancel(thread1); 81 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { 85 while (!t1_start) /* wait for thread1 started */ 106 fprintf(stderr, "Time to wake up thread1 by signaling a condition\n"); 113 pthread_join(thread1, NULL);
|
H A D | 2-1.c | 27 pthread_t thread1; variable 36 pthread_cancel(thread1); 95 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { 99 while (!t1_start) /* wait for thread1 started */ 120 fprintf(stderr, "Time to wake up thread1 by signaling a condition\n"); 127 pthread_join(thread1, NULL);
|
H A D | 3-1.c | 25 pthread_t thread1; variable 34 pthread_cancel(thread1); 91 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { 106 "To wake up thread1 by broadcasting its waited condition\n"); 113 pthread_join(thread1, NULL);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
H A D | 4-1.c | 69 pthread_t thread1; local 81 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { 88 pthread_join(thread1, &th_ret);
|
H A D | 1-1.c | 82 pthread_t thread1; local 93 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { 97 while (!t1_start) /* wait for thread1 started */ 111 fprintf(stderr, "Time to wake up thread1 by signaling a condition\n"); 118 pthread_join(thread1, NULL);
|
H A D | 2-1.c | 101 pthread_t thread1; local 112 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { 116 while (!t1_start) /* wait for thread1 started */ 130 fprintf(stderr, "Time to wake up thread1 by signaling a condition\n"); 137 pthread_join(thread1, NULL);
|
H A D | 2-2.c | 80 pthread_t thread1; local 92 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { 97 while (!t1_start) /* wait for thread1 started */ 115 if (pthread_join(thread1, &th_ret) != 0) {
|
H A D | 2-3.c | 71 pthread_t thread1; local 84 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { 94 if (pthread_join(thread1, (void *)&th_ret) != 0) {
|
H A D | 3-1.c | 86 pthread_t thread1; local 97 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) { 101 while (!t1_start) /* wait for thread1 started */ 115 fprintf(stderr, "Time to wake up thread1 by signaling a condition\n"); 122 pthread_join(thread1, NULL);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
H A D | 2-1.c | 91 pthread_t thread1; local 109 if (pthread_create(&thread1, NULL, fn_rd, NULL) != 0) { 110 printf("Error creating thread1\n"); 144 if (pthread_join(thread1, NULL) != 0) {
|
H A D | 5-1.c | 49 printf("thread1: Error at pthread_rwlock_init\n"); 59 printf("thread1: attempt timed read-lock\n"); 62 printf("thread1: timed read-lock expired\n"); 65 printf("thread1: acquired read lock\n"); 67 printf("thread1: unlock read lock\n"); 69 printf("thread1: failed to release read lock\n"); 73 printf("thread1: Error in pthread_rwlock_timedrdlock().\n"); 78 printf("thread1: Error at pthread_rwlockattr_destroy()"); 135 pthread_t thread1, thread2; local 138 printf("main: create thread1\ [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
H A D | 2-1.c | 96 pthread_t thread1; local 113 if (pthread_create(&thread1, NULL, fn, NULL) != 0) { 152 if (pthread_join(thread1, NULL) != 0) {
|
/external/libchrome/sandbox/linux/services/ |
H A D | thread_helpers_unittests.cc | 115 base::Thread thread1("sandbox_tests"); 120 ThreadHelpers::StartThreadAndWatchProcFS(proc_fd.fd(), &thread1)); 125 thread1.Stop(); 142 base::Thread thread1("sandbox_tests"); 143 SANDBOX_ASSERT(thread1.Start());
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/ |
H A D | 1-1.c | 68 pthread_t thread1, thread2; local 86 printf("main: create thread1\n"); 87 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { 88 printf("Error creating thread1\n"); 94 /* We do no expect thread1 to block */ 103 ("Test FAILED: thread1 should not block on pthread_rwlock_trywrlock()\n"); 106 printf("Unexpected thread state for thread1: %d\n", 112 printf("Test FAILED: thread1 should get EBUSY\n"); 122 if (pthread_join(thread1, NULL) != 0) { 123 printf("main: Error joining thread1\ [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/ |
H A D | 1-1.c | 57 printf("thread1: Error at pthread_rwlock_unlock()\n"); 75 pthread_t thread1, thread2; local 91 printf("main: create thread1\n"); 92 if (pthread_create(&thread1, NULL, fn_wr, NULL) != 0) { 93 printf("Error creating thread1\n"); 106 printf("Test FAILED: The thread1 did not block\n"); 122 /* thread1 should get the write lock */ 130 printf("Test FAILEd: thread1 did not get the write lock\n"); 134 printf("Child thread1 in unexpected state %d\n", thread_state); 138 if (pthread_join(thread1, NUL [all...] |
/external/elfutils/tests/ |
H A D | dwfl-proc-attach.c | 44 static pthread_t thread1; variable 80 if ((err = pthread_create (&thread1, NULL, sleeper, NULL)) != 0) 81 error (-1, err, "Couldn't create thread1");
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_gs_state.c | 61 gs->thread1.floating_point_mode = BRW_FLOATING_POINT_NON_IEEE_754; 62 gs->thread1.single_program_flow = 1;
|
/external/libmojo/mojo/edk/system/ |
H A D | awakable_list_unittest.cc | 173 test::SimpleWaiterThread thread1(&result1, &context1); 174 awakable_list.Add(thread1.waiter(), MOJO_HANDLE_SIGNAL_READABLE, 1); 175 thread1.Start(); 190 test::SimpleWaiterThread thread1(&result1, &context1); 191 awakable_list.Add(thread1.waiter(), MOJO_HANDLE_SIGNAL_READABLE, 3); 192 thread1.Start(); 200 awakable_list.Remove(thread1.waiter()); 211 test::SimpleWaiterThread thread1(&result1, &context1); 212 awakable_list.Add(thread1.waiter(), MOJO_HANDLE_SIGNAL_READABLE, 5); 213 thread1 [all...] |
/external/boringssl/src/crypto/ |
H A D | thread_test.c | 107 thread_t thread1, thread2; local 108 if (!run_thread(&thread1, call_once_thread) || 110 !wait_for_thread(thread1) ||
|