Lines Matching refs:t
51 T *t = (T *) arg; in tf() local
53 if (pthread_mutex_lock (&t->lock) != 0) in tf()
61 if (pthread_cond_signal (&t->cond) != 0) in tf()
67 if (pthread_cond_wait (&t->cond, &t->lock) != 0) in tf()
73 if (pthread_mutex_unlock (&t->lock) != 0) in tf()
88 T *t[N]; in do_test() local
93 t[i] = (T *) malloc (sizeof (T)); in do_test()
94 if (t[i] == NULL) in do_test()
100 if (pthread_mutex_init (&t[i]->lock, NULL) != 0 in do_test()
101 || pthread_cond_init (&t[i]->cond, NULL) != 0) in do_test()
107 if (pthread_mutex_lock (&t[i]->lock) != 0) in do_test()
115 if (pthread_create (&t[i]->h, NULL, tf, t[i]) != 0) in do_test()
122 if (pthread_cond_wait (&t[i]->cond, &t[i]->lock) != 0) in do_test()
130 if (pthread_mutex_unlock (&t[i]->lock) != 0) in do_test()
136 if (pthread_cancel (t[i]->h) != 0) in do_test()
145 if (pthread_join (t[i]->h, &result) != 0) in do_test()
159 free (t[i]); in do_test()