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