OSDN Git Service

fix namespace violation in dependencies of mtx_lock
authorRich Felker <dalias@aerifal.cx>
Thu, 14 Mar 2019 03:23:26 +0000 (23:23 -0400)
committerRich 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

index b95af25..0f171c0 100644 (file)
@@ -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;