mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
Do defered mutex wakeup once.
This commit is contained in:
parent
1762ec944a
commit
aa75bc577a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239206
@ -239,6 +239,7 @@ cond_wait_user(struct pthread_cond *cvp, struct pthread_mutex *mp,
|
||||
_thr_clear_wake(curthread);
|
||||
_sleepq_unlock(cvp);
|
||||
if (defered) {
|
||||
defered = 0;
|
||||
if ((mp->m_lock.m_owner & UMUTEX_CONTESTED) == 0)
|
||||
(void)_umtx_op_err(&mp->m_lock, UMTX_OP_MUTEX_WAKE2,
|
||||
mp->m_lock.m_flags, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user