diff options
Diffstat (limited to 'sysdeps/mach/hurd/htl/pt-mutex-consistent.c')
-rw-r--r-- | sysdeps/mach/hurd/htl/pt-mutex-consistent.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/mach/hurd/htl/pt-mutex-consistent.c b/sysdeps/mach/hurd/htl/pt-mutex-consistent.c index edcd9133ba..d6323d56dc 100644 --- a/sysdeps/mach/hurd/htl/pt-mutex-consistent.c +++ b/sysdeps/mach/hurd/htl/pt-mutex-consistent.c @@ -29,11 +29,11 @@ pthread_mutex_consistent (pthread_mutex_t *mtxp) int ret = EINVAL; unsigned int val = mtxp->__lock; - if ((mtxp->__flags & PTHREAD_MUTEX_ROBUST) != 0 && - (val & LLL_DEAD_OWNER) != 0 && - atomic_compare_and_exchange_bool_acq (&mtxp->__lock, - __getpid () | LLL_WAITERS, - val) == 0) + if ((mtxp->__flags & PTHREAD_MUTEX_ROBUST) != 0 + && (val & LLL_DEAD_OWNER) != 0 + && atomic_compare_and_exchange_bool_acq (&mtxp->__lock, + __getpid () | LLL_WAITERS, + val) == 0) { /* The mutex is now ours, and it's consistent. */ mtxp->__owner_id = _pthread_self ()->thread; |