/external/libcap-ng/libcap-ng-0.7/src/test/ |
H A D | thread_test.c | 9 pthread_t thread1, thread2; variable 32 printf("thread2 getting capabilities\n"); 50 pthread_create(&thread2, NULL, thread2_main, NULL);
|
/external/valgrind/exp-bbv/tests/amd64-linux/ |
H A D | clone_test.S | 52 jz thread2 # if so, jump to thrad2 69 thread2: label
|
/external/valgrind/exp-bbv/tests/x86-linux/ |
H A D | clone_test.S | 52 jz thread2 # if so, jump to thrad2 69 thread2: label
|
/external/elfutils/tests/ |
H A D | dwfl-proc-attach.c | 45 static pthread_t thread2; variable 82 if ((err = pthread_create (&thread2, NULL, sleeper, NULL)) != 0) 83 error (-1, err, "Couldn't create thread2");
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/ |
H A D | 1-1.c | 68 pthread_t thread1, thread2; local 142 printf("main: create thread2\n"); 143 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { 144 printf("main: Error creating thread2\n"); 148 /* We do not expect thread2 to block */ 155 ("Test FAILED: thread2 should not block on pthread_rwlock_trywrlock()\n"); 163 printf("Test FAILED: thread2 should get EBUSY\n"); 174 if (pthread_join(thread2, NULL) != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/ |
H A D | 1-1.c | 75 pthread_t thread1, thread2; local 153 printf("main: create thread2\n"); 154 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { 155 printf("main: Error creating thread2\n"); 165 printf("Test FAILED: thread2 should have block\n"); 168 printf("thread2 in unexpected state %d\n", thread_state); 179 if (pthread_join(thread2, NULL) != 0) { 180 printf("main: Error joining thread2\n");
|
/external/valgrind/drd/tests/ |
H A D | rwlock_race.c | 38 pthread_t thread2; local 48 pthread_create(&thread2, 0, thread_func, 0); 50 pthread_join(thread2, 0);
|
H A D | std_atomic.cpp | 34 pthread_t thread2; local 44 err = pthread_create(&thread2, NULL, &func2, NULL); 51 err = pthread_join(thread2, NULL);
|
H A D | std_list.cpp | 81 pthread_t thread2; local 89 err = pthread_create(&thread2, NULL, &func2, &instance2); 96 err = pthread_join(thread2, NULL);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
H A D | 5-1.c | 94 printf("thread2: Error at pthread_rwlock_init\n"); 104 printf("thread2: attempt timed read-lock\n"); 107 printf("thread2: timed read-lock expired\n"); 110 printf("thread2: acquired read lock\n"); 112 printf("thread2: unlock read lock\n"); 114 printf("thread2: failed to release read lock\n"); 118 printf("thread2: Error in pthread_rwlock_timedrdlock().\n"); 123 printf("thread2: Error at pthread_rwlockattr_destroy()\n"); 135 pthread_t thread1, thread2; local 174 printf("main: create thread2\ [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
H A D | 1-1.c | 95 pthread_t thread0, thread1, thread2; local 208 printf("main: create thread2\n"); 209 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { 210 printf("Error when creating thread2\n"); 214 /* we expect thread2 to expire blocking after timeout */ 233 printf("thread2 correctly expired at timeout.\n"); 237 ("Test FAILED: for thread2, wait is not terminated even when the timer expired\n"); 240 printf("Unexpected state for thread2 %d\n", thread_state);
|
H A D | 5-1.c | 101 printf("thread2: Error at pthread_rwlock_init\n"); 110 printf("thread2: attempt timed lock for writing\n"); 113 printf("thread2: timer expired\n"); 116 printf("thread2: acquired write lock\n"); 118 printf("thread2: unlock write lock\n"); 120 printf("thread2: failed to release write lock\n"); 124 printf("thread2: Error in pthread_rwlock_timedwrlock().\n"); 129 printf("thread2: Error at pthread_rwlock_destroy()\n"); 141 pthread_t thread1, thread2; local 179 printf("main: create thread2\ [all...] |
H A D | 3-1.c | 115 pthread_t thread0, thread1, thread2; local 229 printf("main: create thread2\n"); 230 if (pthread_create(&thread2, NULL, fn_wr, NULL) != 0) { 231 printf("Error when creating thread2\n"); 235 /* we expect thread2 to expire blocking after timeout */ 254 printf("thread2 correctly expired at timeout.\n"); 257 printf("Test FAILED: for thread2, wait is not terminated " 261 printf("Unexpected state for thread2 %d\n", thread_state);
|
/external/boringssl/src/crypto/ |
H A D | thread_test.cc | 119 thread_t thread1, thread2; local 121 ASSERT_TRUE(run_thread(&thread2, call_once_thread)); 123 ASSERT_TRUE(wait_for_thread(thread2));
|
/external/webrtc/webrtc/base/ |
H A D | logging_unittest.cc | 105 LogThread thread1, thread2, thread3; local 107 thread2.Start();
|
H A D | thread_unittest.cc | 356 Thread* thread1, Thread* thread2, LockedBool* out) { 362 thread1, Bind(&SetAndInvokeSet, &async_invoked, thread2, out)); 355 AsyncInvokeSetAndWait( Thread* thread1, Thread* thread2, LockedBool* out) argument
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
H A D | MonitorTestCase.java | 56 private TestThread<Monitor> thread2; field in class:MonitorTestCase 66 tearDownStack.addTearDown(thread2 = new TestThread<Monitor>(monitor, "TestThread #2")); 103 thread2.callAndAssertBlocks(enter()); 105 thread2.assertPriorCallReturns(enter()); 110 thread2.callAndAssertReturns(false, tryEnter()); 112 thread2.callAndAssertReturns(false, tryEnter()); 114 thread2.callAndAssertReturns(false, tryEnter()); 116 thread2.callAndAssertReturns(true, tryEnter()); 136 thread2.callAndAssertReturns(enterCount != 0, "isOccupied"); 137 thread2 [all...] |
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/ |
H A D | cpuset_memory_test.c | 303 err(1, "sigwaitinfo() in thread2 failed"); 318 * to control thread2 behaviour. 326 pthread_t thread2; local 339 pthread_create(&thread2, NULL, thread2_routine, NULL); 382 pthread_cancel(thread2); 383 pthread_join(thread2, &retv);
|
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/ |
H A D | context_switch.c | 160 void *(*thread2)(void *); member in struct:actions 209 .thread2 = pipe_thread2, 248 .thread2 = yield_thread2, 378 .thread2 = futex_thread2, 489 start_fn(actions->thread2, NULL, cpu2);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_structs.h | 97 struct thread2 struct 139 struct thread2 thread2; member in struct:brw_clip_unit_state 379 struct thread2 thread2; member in struct:brw_sf_unit_state 446 struct thread2 thread2; member in struct:brw_gs_unit_state 490 struct thread2 thread2; member in struct:brw_vs_unit_state 525 struct thread2 thread member in struct:brw_wm_unit_state [all...] |