diff options
| author | ad <ad@NetBSD.org> | 2007-09-11 10:27:44 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2007-09-11 10:27:44 +0000 |
| commit | baebee83d58df34a846acbd75274b339f4ca6667 (patch) | |
| tree | f0e9bb4e1206a3ccd48c051d8f164ea0c2f2a885 /lib/libpthread | |
| parent | d9144c32f2f9f89d078278709fe220218f18b7a2 (diff) | |
Fix inverted test after merge of nick-csl-alignment.
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/pthread_mutex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/pthread_mutex.c b/lib/libpthread/pthread_mutex.c index 8c384d5d3ed..9b306169de9 100644 --- a/lib/libpthread/pthread_mutex.c +++ b/lib/libpthread/pthread_mutex.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_mutex.c,v 1.34 2007/09/10 11:34:05 skrll Exp $ */ +/* $NetBSD: pthread_mutex.c,v 1.35 2007/09/11 10:27:44 ad Exp $ */ /*- * Copyright (c) 2001, 2003, 2006, 2007 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread_mutex.c,v 1.34 2007/09/10 11:34:05 skrll Exp $"); +__RCSID("$NetBSD: pthread_mutex.c,v 1.35 2007/09/11 10:27:44 ad Exp $"); #include <errno.h> #include <limits.h> @@ -210,7 +210,7 @@ pthread_mutex_lock_slow(pthread_t self, pthread_mutex_t *mutex) * again. */ PTQ_INSERT_HEAD(&mutex->ptm_blocked, self, pt_sleep); - if (__SIMPLELOCK_LOCKED_P(&mutex->ptm_lock)) { + if (__SIMPLELOCK_UNLOCKED_P(&mutex->ptm_lock)) { PTQ_REMOVE(&mutex->ptm_blocked, self, pt_sleep); pthread_spinunlock(&mutex->ptm_interlock); continue; |
