| 1 | #include "pthread_impl.h" |
| 2 | |
| 3 | int __pthread_mutex_timedlock(pthread_mutex_t *restrict m, const struct timespec *restrict at) |
| 4 | { |
| 5 | 	/* "The pthread_mutex_timedlock() function may fail if: A deadlock condition was detected." */ |
| 6 | 	/* This means that we don't have to wait and then return timeout, we can just detect deadlock. */ |
| 7 | 	return pthread_mutex_lock(m); |
| 8 | } |
| 9 | |
| 10 | weak_alias(__pthread_mutex_timedlock, pthread_mutex_timedlock); |