projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
floating point environment, untested
[oweals/musl.git]
/
src
/
thread
/
pthread_mutex_lock.c
diff --git
a/src/thread/pthread_mutex_lock.c
b/src/thread/pthread_mutex_lock.c
index 87b19752ee0e4d2845a9e430ae2b60447c4533a4..99c15bd8f6f649c79f61c807341d049b878a3396 100644
(file)
--- a/
src/thread/pthread_mutex_lock.c
+++ b/
src/thread/pthread_mutex_lock.c
@@
-4,7
+4,7
@@
int pthread_mutex_lock(pthread_mutex_t *m)
{
int r;
- if (m->_m_type == PTHREAD_MUTEX_NORMAL && !a_swap(&m->_m_lock,
1
))
+ if (m->_m_type == PTHREAD_MUTEX_NORMAL && !a_swap(&m->_m_lock,
EBUSY
))
return 0;
while ((r=pthread_mutex_trylock(m)) == EBUSY) {