projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a03b0b
)
fix namespace violation in dependencies of mtx_lock
author
Rich Felker
<dalias@aerifal.cx>
Thu, 14 Mar 2019 03:23:26 +0000
(23:23 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 14 Mar 2019 03:23:26 +0000
(23:23 -0400)
commit
2de29bc994029b903a366b8a4a9f8c3c3ee2be90
left behind one
reference to pthread_mutex_trylock. fixing this also improves code
generation due to the namespace-safe version being hidde.
src/thread/pthread_mutex_timedlock.c
patch
|
blob
|
history
diff --git
a/src/thread/pthread_mutex_timedlock.c
b/src/thread/pthread_mutex_timedlock.c
index b95af2512e1c7d58765613df52bdf3699bf27e8a..0f171c0034d421976f0413eb642f3aa85440084c 100644
(file)
--- a/
src/thread/pthread_mutex_timedlock.c
+++ b/
src/thread/pthread_mutex_timedlock.c
@@
-9,7
+9,7
@@
int __pthread_mutex_timedlock(pthread_mutex_t *restrict m, const struct timespec
int type = m->_m_type;
int r, t, priv = (type & 128) ^ 128;
- r = pthread_mutex_trylock(m);
+ r =
__
pthread_mutex_trylock(m);
if (r != EBUSY) return r;
int spins = 100;