Home | History | Annotate | Download | only in pthread_cond_timedwait

Lines Matching refs:td

177 	testdata_t *td = (testdata_t *) arg;
180 ret = pthread_mutex_lock(&(td->mtx));
182 td->status = ret;
187 if (td->ctrl == 0)
188 td->gotit += 1;
191 ret = pthread_mutex_unlock(&(td->mtx));
193 td->status = ret;
209 testdata_t *td;
255 td = &alternativ;
303 td = (testdata_t *) mmaped;
426 ret = pthread_mutex_init(&(td->mtx), &ma);
432 td->ctrl = 0;
433 td->gotit = 0;
434 td->status = 0;
440 ret = pthread_mutex_lock(&(td->mtx));
463 if (tf((void *)td) != NULL) {
479 tf, td);
516 pthread_cond_timedwait(&cnd, &(td->mtx),
521 strerror(ret), td->gotit);
526 if (td->gotit != 0) {
539 td->ctrl = 1;
540 ret = pthread_mutex_unlock(&(td->mtx));
600 ret = pthread_mutex_destroy(&(td->mtx));