Lines Matching refs:td
29 } td;
40 if (pthread_mutex_lock(&td.mutex) != 0) {
56 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
74 pthread_mutex_unlock(&td.mutex);
82 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
86 if (pthread_cond_init(&td.cond, NULL) != 0) {
99 if (pthread_mutex_lock(&td.mutex) != 0) {
103 if (pthread_mutex_unlock(&td.mutex) != 0) {
111 if (pthread_cond_signal(&td.cond) != 0) {