diff options
| author | ad <ad@NetBSD.org> | 2007-10-04 01:46:49 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2007-10-04 01:46:49 +0000 |
| commit | a4b475cd220bfe493ccfd4083d2da57eb855d31f (patch) | |
| tree | 996a7a416d7ead6eb75ffd6fd49afd74157672f0 /lib/libpthread | |
| parent | 18bad5abbae92d16c893703e4b706bf7349544e4 (diff) | |
Fix a thinko.
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/pthread_mutex2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/pthread_mutex2.c b/lib/libpthread/pthread_mutex2.c index 15d87be37a6..a115a8d50de 100644 --- a/lib/libpthread/pthread_mutex2.c +++ b/lib/libpthread/pthread_mutex2.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_mutex2.c,v 1.9 2007/09/21 21:28:11 ad Exp $ */ +/* $NetBSD: pthread_mutex2.c,v 1.10 2007/10/04 01:46:49 ad Exp $ */ /*- * Copyright (c) 2001, 2003, 2006, 2007 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread_mutex2.c,v 1.9 2007/09/21 21:28:11 ad Exp $"); +__RCSID("$NetBSD: pthread_mutex2.c,v 1.10 2007/10/04 01:46:49 ad Exp $"); #include <errno.h> #include <limits.h> @@ -212,7 +212,7 @@ pthread__mutex_lock_slow(pthread_mutex_t *ptm) /* Spin for a while. */ count = pthread__nspins; - while (MUTEX_OWNER(owner) == 0 && --count > 0) { + while (MUTEX_OWNER(owner) != 0 && --count > 0) { pthread__mutex_pause(); owner = ptm->ptm_owner; } |
