Let _mutex_cv_lock call internal functiona mutex_lock_common.

This commit is contained in:
David Xu 2005-12-21 05:14:07 +00:00
parent 8429e73473
commit e6262545cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153595

View file

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