Lines Matching defs:td
27 } td;
37 if (pthread_mutex_lock(&td.mutex) != 0) {
45 rc = pthread_cond_wait(&td.cond, &td.mutex);
53 if (pthread_mutex_unlock(&td.mutex) != 0) {
65 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
69 if (pthread_cond_init(&td.cond, NULL) != 0) {
85 if (pthread_mutex_lock(&td.mutex) != 0) {
89 if (pthread_mutex_unlock(&td.mutex) != 0) {
97 rc = pthread_cond_broadcast(&td.cond);