Searched refs:thread2 (Results 1 - 25 of 32) sorted by relevance

12

/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/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...]
H A DExecutionListTest.java88 Thread thread2 = new Thread(execute);
90 thread2.start();
94 thread2.join();
H A DThreadFactoryBuilderTest.java76 Thread thread2 = threadFactory.newThread(monitoredRunnable);
77 checkThreadPoolName(thread2, 2);
80 thread2.getName().substring(0, thread.getName().lastIndexOf('-')));
87 thread2.getName().substring(0, thread.getName().lastIndexOf('-')))
/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/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_vs_state.c77 vs->thread2.scratch_space_base_pointer =
79 vs->thread2.per_thread_scratch_space =
82 vs->thread2.scratch_space_base_pointer = 0;
83 vs->thread2.per_thread_scratch_space = 0;
160 offsetof(struct brw_vs_unit_state, thread2),
162 vs->thread2.per_thread_scratch_space,
H A Dbrw_wm_state.c119 wm->thread2.scratch_space_base_pointer =
121 wm->thread2.per_thread_scratch_space =
124 wm->thread2.scratch_space_base_pointer = 0;
125 wm->thread2.per_thread_scratch_space = 0;
229 offsetof(struct brw_wm_unit_state, thread2),
231 wm->thread2.per_thread_scratch_space,
/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/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/libmojo/mojo/edk/system/
H A Dawakable_list_unittest.cc176 test::SimpleWaiterThread thread2(&result2, &context2);
177 awakable_list.Add(thread2.waiter(), MOJO_HANDLE_SIGNAL_WRITABLE, 2);
178 thread2.Start();
193 test::SimpleWaiterThread thread2(&result2, &context2);
194 awakable_list.Add(thread2.waiter(), MOJO_HANDLE_SIGNAL_WRITABLE, 4);
195 thread2.Start();
214 test::SimpleWaiterThread thread2(&result2, &context2);
215 awakable_list.Add(thread2.waiter(), MOJO_HANDLE_SIGNAL_WRITABLE, 6);
216 thread2.Start();
220 awakable_list.Remove(thread2
[all...]
/external/boringssl/src/crypto/
H A Dthread_test.c107 thread_t thread1, thread2; local
109 !run_thread(&thread2, call_once_thread) ||
111 !wait_for_thread(thread2)) {
/external/libchrome/sandbox/linux/services/
H A Dthread_helpers_unittests.cc116 base::Thread thread2("sandbox_tests");
122 ThreadHelpers::StartThreadAndWatchProcFS(proc_fd.fd(), &thread2));
126 thread2.Stop();
/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 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 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 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/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/
H A Dcontext_switch.c149 void *(*thread2)(void *); member in struct:actions
198 .thread2 = pipe_thread2,
237 .thread2 = yield_thread2,
352 .thread2 = futex_thread2,
465 start_fn(actions->thread2, NULL, cpu2);
/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/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/libchrome/base/process/
H A Dprocess_metrics_unittest.cc311 Thread thread2("thread2");
315 thread2.StartAndWaitForTesting();
319 ASSERT_TRUE(thread2.IsRunning());
327 thread2.task_runner()->PostTask(FROM_HERE, Bind(&BusyWork, &vec2));
335 thread2.Stop();
/external/libchrome/base/synchronization/
H A Dlock_unittest.cc196 MutexLockTestThread thread2(&lock, &value);
203 ASSERT_TRUE(PlatformThread::Create(0, &thread2, &handle2));

Completed in 1814 milliseconds

12