From baebee83d58df34a846acbd75274b339f4ca6667 Mon Sep 17 00:00:00 2001 From: ad Date: Tue, 11 Sep 2007 10:27:44 +0000 Subject: [PATCH] Fix inverted test after merge of nick-csl-alignment. --- lib/libpthread/pthread_mutex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libpthread/pthread_mutex.c b/lib/libpthread/pthread_mutex.c index 8c384d5d3eda..9b306169de9e 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 -__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 #include @@ -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;