Lines Matching refs:td
26 } td;
45 if (pthread_mutex_lock(&td.mutex) != 0) {
53 rc = pthread_cond_wait(&td.cond, &td.mutex);
65 if (pthread_mutex_trylock(&td.mutex) == 0) {
72 if (pthread_mutex_unlock(&td.mutex) != 0) {
86 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
90 if (pthread_cond_init(&td.cond, NULL) != 0) {
103 if (pthread_mutex_lock(&td.mutex) != 0) {
107 if (pthread_mutex_unlock(&td.mutex) != 0) {
122 if (pthread_cond_signal(&td.cond) != 0) {