projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix fesetround error checking
[musl]
/
src
/
thread
/
pthread_mutex_timedlock.c
diff --git
a/src/thread/pthread_mutex_timedlock.c
b/src/thread/pthread_mutex_timedlock.c
index
f91f4a6
..
9867f38
100644
(file)
--- a/
src/thread/pthread_mutex_timedlock.c
+++ b/
src/thread/pthread_mutex_timedlock.c
@@
-15,7
+15,7
@@
int __pthread_mutex_timedlock(pthread_mutex_t *restrict m, const struct timespec
int spins = 100;
while (spins-- && m->_m_lock && !m->_m_waiters) a_spin();
int spins = 100;
while (spins-- && m->_m_lock && !m->_m_waiters) a_spin();
- while ((r=pthread_mutex_trylock(m)) == EBUSY) {
+ while ((r=
__
pthread_mutex_trylock(m)) == EBUSY) {
if (!(r=m->_m_lock) || ((r&0x40000000) && (type&4)))
continue;
if ((type&3) == PTHREAD_MUTEX_ERRORCHECK
if (!(r=m->_m_lock) || ((r&0x40000000) && (type&4)))
continue;
if ((type&3) == PTHREAD_MUTEX_ERRORCHECK