projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
implement pthread_rwlockattr_* (essentially no-ops)
[oweals/musl.git]
/
src
/
thread
/
pthread_mutex_lock.c
1
#include "pthread_impl.h"
2
3
int pthread_mutex_lock(pthread_mutex_t *m)
4
{
5
int r;
6
while ((r=pthread_mutex_trylock(m)) == EBUSY)
7
__wait(&m->_m_lock, &m->_m_waiters, 1, 0);
8
return r;
9
}