Lines Matching defs:td
28 } td;
38 if (pthread_mutex_lock(&td.mutex) != 0) {
46 rc = pthread_cond_wait(&td.cond, &td.mutex);
52 if (pthread_mutex_trylock(&td.mutex) == 0) {
61 if (pthread_mutex_unlock(&td.mutex) != 0) {
75 if (pthread_mutex_init(&td.mutex, NULL) != 0) {
79 if (pthread_cond_init(&td.cond, NULL) != 0) {
95 if (pthread_mutex_lock(&td.mutex) != 0) {
99 if (pthread_mutex_unlock(&td.mutex) != 0) {
106 rc = pthread_cond_broadcast(&td.cond);