X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_mutex_timedlock.c;h=9867f3895f65962fe70281510e37b1eaa0b5d1f1;hb=7b384c42b73ca1a1e150b3f255990ec53cedec60;hp=f91f4a61b642e02c5cb7dbbb3697f57ffce20989;hpb=d1fa28860634af4f0efd70d533a756b51a45f83e;p=musl diff --git a/src/thread/pthread_mutex_timedlock.c b/src/thread/pthread_mutex_timedlock.c index f91f4a61..9867f389 100644 --- 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(); - 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