Searched defs:thread2 (Results 1 - 20 of 20) sorted by relevance

/external/libcap-ng/libcap-ng-0.7/src/test/
H A Dthread_test.c9 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 Dclone_test.S52 jz thread2 # if so, jump to thrad2
69 thread2: label
/external/valgrind/exp-bbv/tests/x86-linux/
H A Dclone_test.S52 jz thread2 # if so, jump to thrad2
69 thread2: label
/external/elfutils/tests/
H A Ddwfl-proc-attach.c45 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 D1-1.c68 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 D1-1.c75 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 Drwlock_race.c38 pthread_t thread2; local
48 pthread_create(&thread2, 0, thread_func, 0);
50 pthread_join(thread2, 0);
H A Dstd_atomic.cpp34 pthread_t thread2; local
44 err = pthread_create(&thread2, NULL, &func2, NULL);
51 err = pthread_join(thread2, NULL);
H A Dstd_list.cpp81 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 D5-1.c94 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 D1-1.c95 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 D5-1.c101 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 D3-1.c115 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 Dthread_test.cc119 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 Dlogging_unittest.cc105 LogThread thread1, thread2, thread3; local
107 thread2.Start();
H A Dthread_unittest.cc356 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 DMonitorTestCase.java56 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 Dcpuset_memory_test.c303 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 Dcontext_switch.c160 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 Dbrw_structs.h97 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...]

Completed in 725 milliseconds