mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-15 09:43:57 +03:00
fix erroneous pthread_cond_wait mutex waiter count logic due to typo
introduced in commit 27b2fc9d6db956359727a66c262f1e69995660aa.
This commit is contained in:
parent
27b2fc9d6d
commit
d91a6cf6e3
@ -155,7 +155,7 @@ relock:
|
||||
int val = m->_m_lock;
|
||||
if (val>0) a_cas(&m->_m_lock, val, val|0x80000000);
|
||||
unlock_requeue(&node.prev->barrier, &m->_m_lock, m->_m_type & (8|128));
|
||||
} else if (!!(m->_m_type & 8)) {
|
||||
} else if (!(m->_m_type & 8)) {
|
||||
a_dec(&m->_m_waiters);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user