diff options
| author | Rich Felker <dalias@aerifal.cx> | 2020-10-30 16:50:08 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2020-10-30 16:50:08 -0400 | 
| commit | d91a6cf6e369a79587c5665fce9635e5634ca201 (patch) | |
| tree | 991d30a42c2813a79d35bd21cd0be9c88e1a4d38 /src | |
| parent | 27b2fc9d6db956359727a66c262f1e69995660aa (diff) | |
| download | musl-d91a6cf6e369a79587c5665fce9635e5634ca201.tar.gz | |
fix erroneous pthread_cond_wait mutex waiter count logic due to typo
introduced in commit 27b2fc9d6db956359727a66c262f1e69995660aa.
Diffstat (limited to 'src')
| -rw-r--r-- | src/thread/pthread_cond_timedwait.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/thread/pthread_cond_timedwait.c b/src/thread/pthread_cond_timedwait.c index a0cd4904..6b761455 100644 --- a/src/thread/pthread_cond_timedwait.c +++ b/src/thread/pthread_cond_timedwait.c @@ -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);		  	} | 
