mirror of
git://git.musl-libc.org/musl
synced 2025-02-23 14:26:50 +00:00
fix harmless-by-chance typo in priority inheritance mutex code
commit 54ca677983
inadvertently
introduced bitwise and where logical and was intended. since the
right-hand operand is always 0 or -1 whenever the left-hand operand is
nonzero, the behavior happened to be equivalent.
This commit is contained in:
parent
54ca677983
commit
8ee0ca0ce6
@ -36,7 +36,7 @@ int __pthread_mutex_trylock_owner(pthread_mutex_t *m)
|
||||
|
||||
if (a_cas(&m->_m_lock, old, tid) != old) {
|
||||
self->robust_list.pending = 0;
|
||||
if ((type&12)==12 & m->_m_waiters) return ENOTRECOVERABLE;
|
||||
if ((type&12)==12 && m->_m_waiters) return ENOTRECOVERABLE;
|
||||
return EBUSY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user