mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-25 16:13:17 +00:00
Use return value of _thr_umutex_lock instead of using zero.
This commit is contained in:
parent
6a146a1989
commit
ddaf6689e3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162143
@ -355,8 +355,7 @@ mutex_lock_common(struct pthread *curthread, pthread_mutex_t *mutex,
|
||||
ret = mutex_self_lock(m, abstime);
|
||||
} else {
|
||||
if (abstime == NULL) {
|
||||
_thr_umutex_lock(&m->m_lock, id);
|
||||
ret = 0;
|
||||
ret = _thr_umutex_lock(&m->m_lock, id);
|
||||
} else if (__predict_false(
|
||||
abstime->tv_sec < 0 || abstime->tv_nsec < 0 ||
|
||||
abstime->tv_nsec >= 1000000000)) {
|
||||
|
Loading…
Reference in New Issue
Block a user