5 int __pthread_mutex_timedlock(pthread_mutex_t *restrict, const struct timespec *restrict);
7 int mtx_timedlock(mtx_t *restrict m, const struct timespec *restrict ts)
9 int ret = __pthread_mutex_timedlock((pthread_mutex_t *)m, ts);
11 default: return thrd_error;
12 case 0: return thrd_success;
13 case ETIMEDOUT: return thrd_timedout;