1 #include "pthread_impl.h"
3 static void relock(void *m)
8 int pthread_cond_timedwait(pthread_cond_t *c, pthread_mutex_t *m, const struct timespec *ts)
12 if (ts && ts->tv_nsec >= 1000000000UL)
18 if ((r=pthread_mutex_unlock(m))) return r;
20 do e = __timedwait(&c->_c_block, 1, c->_c_clock, ts, relock, m, 0);
23 if ((r=pthread_mutex_lock(m))) return r;