reorganize pthread data structures and move the definitions to alltypes.h
[musl] / src / thread / pthread_mutex_lock.c
index 6696f17..15ede3f 100644 (file)
@@ -4,6 +4,6 @@ int pthread_mutex_lock(pthread_mutex_t *m)
 {
        int r;
        while ((r=pthread_mutex_trylock(m)) == EBUSY)
-               __wait(&m->__lock, &m->__waiters, 1, 0);
+               __wait(&m->_m_lock, &m->_m_waiters, 1, 0);
        return r;
 }