4 int __pthread_cond_timedwait(cnd_t *restrict, mtx_t *restrict, const struct timespec *restrict);
6 int cnd_timedwait(cnd_t *restrict c, mtx_t *restrict m, const struct timespec *restrict ts)
8 int ret = __pthread_cond_timedwait(c, m, ts);
10 /* May also return EINVAL or EPERM. */
11 default: return thrd_error;
12 case 0: return thrd_success;
13 case ETIMEDOUT: return thrd_timedout;