Lines Matching refs:td
36 } td;
47 if (pthread_mutex_lock(&td.mutex) != 0) {
62 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
80 if (pthread_mutex_trylock(&td.mutex) == 0) {
87 if (pthread_mutex_unlock(&td.mutex) != 0) {
100 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
104 if (pthread_cond_init(&td.cond, NULL) != 0) {
117 if (pthread_mutex_lock(&td.mutex) != 0) {
121 if (pthread_mutex_unlock(&td.mutex) != 0) {
129 if (pthread_cond_signal(&td.cond) != 0) {