Searched refs:thread1 (Results 1 - 25 of 45) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/util/concurrent/
H A DMonitorTestCase.java55 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 Drwlock_race.c37 pthread_t thread1; local
47 pthread_create(&thread1, 0, thread_func, 0);
49 pthread_join(thread1, 0);
H A Dstd_atomic.cpp33 pthread_t thread1; local
41 err = pthread_create(&thread1, NULL, &func1, NULL);
48 err = pthread_join(thread1, NULL);
H A Dstd_list.cpp80 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 D3-2.c34 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 Dthread_test.c9 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 D1-1.c27 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 D2-1.c27 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 D3-1.c25 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 D4-1.c69 pthread_t thread1; local
81 if (pthread_create(&thread1, NULL, t1_func, NULL) != 0) {
88 pthread_join(thread1, &th_ret);
H A D1-1.c82 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 D2-1.c101 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 D2-2.c80 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 D2-3.c71 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 D3-1.c86 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 D2-1.c91 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 D5-1.c49 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 D2-1.c96 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 Dthread_helpers_unittests.cc115 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 D1-1.c68 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 D1-1.c57 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 Ddwfl-proc-attach.c44 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 Dbrw_gs_state.c61 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 Dawakable_list_unittest.cc173 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 Dthread_test.c107 thread_t thread1, thread2; local
108 if (!run_thread(&thread1, call_once_thread) ||
110 !wait_for_thread(thread1) ||

Completed in 529 milliseconds

12