diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-03-13 23:23:26 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-03-13 23:23:26 -0400 |
commit | c62dfe61611cee4b9b2667e1aec8a20385bc5c55 (patch) | |
tree | 2c44115739e04ade16e7afa75ff5cc715dbbb7ed | |
parent | 2a03b0b518c91909bca8f0f97985656193db9fbe (diff) | |
download | musl-c62dfe61611cee4b9b2667e1aec8a20385bc5c55.zip musl-c62dfe61611cee4b9b2667e1aec8a20385bc5c55.tar.gz musl-c62dfe61611cee4b9b2667e1aec8a20385bc5c55.tar.bz2 |
fix namespace violation in dependencies of mtx_lock
commit 2de29bc994029b903a366b8a4a9f8c3c3ee2be90 left behind one
reference to pthread_mutex_trylock. fixing this also improves code
generation due to the namespace-safe version being hidde.
-rw-r--r-- | src/thread/pthread_mutex_timedlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_mutex_timedlock.c b/src/thread/pthread_mutex_timedlock.c index b95af25..0f171c0 100644 --- 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; |