1 #include "pthread_impl.h"
3 int pthread_mutex_unlock(pthread_mutex_t *m)
5 if (m->_m_type != PTHREAD_MUTEX_NORMAL) {
6 if (m->_m_owner != pthread_self()->tid)
8 if (m->_m_type == PTHREAD_MUTEX_RECURSIVE && --m->_m_count)
14 if (m->_m_waiters) __wake(&m->_m_lock, 1, 0);