/* Lock POSIX mutex with timeout. 
See IEEE 1003.1  */
int pthread_mutex_timedlock(pthread_mutex_t *m, const struct timespec *abstime)
/* Lock POSIX mutex with timeout. 
See IEEE 1003.1  */
int pthread_mutex_timedlock(pthread_mutex_t *m, const struct timespec *abstime)
{
	int32_t timeout = (int32_t)timespec_to_timeoutms(abstime);
	return acquire_mutex(m, K_MSEC(timeout));
}