提交 c62dfe61 编写于 作者: R Rich Felker

fix namespace violation in dependencies of mtx_lock

commit 2de29bc9 left behind one
reference to pthread_mutex_trylock. fixing this also improves code
generation due to the namespace-safe version being hidde.
上级 2a03b0b5
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册