mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 08:00:30 +00:00
Let _mutex_cv_lock call internal functiona mutex_lock_common.
This commit is contained in:
parent
8429e73473
commit
e6262545cf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153595
|
@ -854,7 +854,8 @@ _mutex_cv_lock(pthread_mutex_t *m)
|
|||
{
|
||||
int ret;
|
||||
|
||||
if ((ret = _pthread_mutex_lock(m)) == 0)
|
||||
ret = mutex_lock_common(_get_curthread(), m, NULL);
|
||||
if (ret == 0)
|
||||
(*m)->m_refcount--;
|
||||
return (ret);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue