mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 07:07:24 -04:00
Do defered mutex wakeup once.
This commit is contained in:
parent
1762ec944a
commit
aa75bc577a
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue