Lines Matching refs:rv
45 int rv, i; in thread_fun_timed() local
51 rv = pthread_mutex_lock (&mutex); in thread_fun_timed()
52 if (rv) in thread_fun_timed()
54 printf ("pthread_mutex_lock: %s(%d)\n", strerror (rv), rv); in thread_fun_timed()
64 rv = pthread_cond_timedwait (&cond, &mutex, &ts); in thread_fun_timed()
67 if (rv) in thread_fun_timed()
69 printf ("pthread_cond_wait: %s(%d)\n", strerror (rv), rv); in thread_fun_timed()
77 rv = pthread_mutex_unlock (&mutex); in thread_fun_timed()
78 if (rv) in thread_fun_timed()
80 printf ("pthread_mutex_unlock: %s(%d)\n", strerror (rv), rv); in thread_fun_timed()
96 int rv, i; in thread_fun() local
102 rv = pthread_mutex_lock (&mutex); in thread_fun()
103 if (rv) in thread_fun()
105 printf ("pthread_mutex_lock: %s(%d)\n", strerror (rv), rv); in thread_fun()
112 rv = pthread_cond_wait (&cond, &mutex); in thread_fun()
114 if (rv) in thread_fun()
116 printf ("pthread_cond_wait: %s(%d)\n", strerror (rv), rv); in thread_fun()
124 rv = pthread_mutex_unlock (&mutex); in thread_fun()
125 if (rv) in thread_fun()
127 printf ("pthread_mutex_unlock: %s(%d)\n", strerror (rv), rv); in thread_fun()
143 int rv; in do_test_wait() local
149 rv = pthread_mutexattr_init (&mutex_attr); in do_test_wait()
150 if (rv) in do_test_wait()
152 printf ("pthread_mutexattr_init: %s(%d)\n", strerror (rv), rv); in do_test_wait()
156 rv = pthread_mutexattr_setprotocol (&mutex_attr, PTHREAD_PRIO_INHERIT); in do_test_wait()
157 if (rv) in do_test_wait()
159 printf ("pthread_mutexattr_setprotocol: %s(%d)\n", strerror (rv), rv); in do_test_wait()
163 rv = pthread_mutex_init (&mutex, &mutex_attr); in do_test_wait()
164 if (rv) in do_test_wait()
166 printf ("pthread_mutex_init: %s(%d)\n", strerror (rv), rv); in do_test_wait()
170 rv = pthread_cond_init (&cond, NULL); in do_test_wait()
171 if (rv) in do_test_wait()
173 printf ("pthread_cond_init: %s(%d)\n", strerror (rv), rv); in do_test_wait()
180 rv = pthread_create (&threads[i], NULL, f, &retval[i]); in do_test_wait()
181 if (rv) in do_test_wait()
183 printf ("pthread_create: %s(%d)\n", strerror (rv), rv); in do_test_wait()
190 rv = pthread_mutex_lock (&mutex); in do_test_wait()
191 if (rv) in do_test_wait()
193 printf ("pthread_mutex_lock: %s(%d)\n", strerror (rv), rv); in do_test_wait()
201 rv = pthread_cond_signal (&cond); in do_test_wait()
202 if (rv) in do_test_wait()
204 printf ("pthread_cond_signal: %s(%d)\n", strerror (rv), rv); in do_test_wait()
208 rv = pthread_mutex_unlock (&mutex); in do_test_wait()
209 if (rv) in do_test_wait()
211 printf ("pthread_mutex_unlock: %s(%d)\n", strerror (rv), rv); in do_test_wait()
219 rv = pthread_join (threads[i], &ret); in do_test_wait()
220 if (rv) in do_test_wait()
222 printf ("pthread_join: %s(%d)\n", strerror (rv), rv); in do_test_wait()