4 int __pthread_mutex_timedlock(mtx_t *restrict, const struct timespec *restrict);
6 int mtx_timedlock(mtx_t *restrict m, const struct timespec *restrict ts)
8 int ret = __pthread_mutex_timedlock(m, ts);
10 default: return thrd_error;
11 case 0: return thrd_success;
12 case ETIMEDOUT: return thrd_timedout;