1 #include "pthread_impl.h"
3 int __pthread_mutex_timedlock(pthread_mutex_t *restrict, const struct timespec *restrict);
5 int __pthread_mutex_lock(pthread_mutex_t *m)
7 if ((m->_m_type&15) == PTHREAD_MUTEX_NORMAL
8 && !a_cas(&m->_m_lock, 0, EBUSY))
11 return __pthread_mutex_timedlock(m, 0);
14 weak_alias(__pthread_mutex_lock, pthread_mutex_lock);