fix erroneous pthread_cond_wait mutex waiter count logic due to typo

introduced in commit 27b2fc9d6d.
This commit is contained in:
Rich Felker 2020-10-30 16:50:08 -04:00
parent 27b2fc9d6d
commit d91a6cf6e3
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}