summaryrefslogtreecommitdiff
path: root/lib/libpthread/sys
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-02-27 17:45:55 +0000
committerXin LI <delphij@FreeBSD.org>2005-02-27 17:45:55 +0000
commit12927a851366fd52e494fc656c96574af18fc46e (patch)
tree67781a5ec41893d35a1515e4103d85aa850ee9e3 /lib/libpthread/sys
parent1964f79ab3dafac3d8fc2d6ac56fcc0f84f24236 (diff)
Notes
Diffstat (limited to 'lib/libpthread/sys')
-rw-r--r--lib/libpthread/sys/lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/sys/lock.c b/lib/libpthread/sys/lock.c
index e65b552ffaa3..0f0f5f9ce149 100644
--- a/lib/libpthread/sys/lock.c
+++ b/lib/libpthread/sys/lock.c
@@ -183,7 +183,7 @@ _lock_acquire(struct lock *lck, struct lockuser *lu, int prio)
atomic_store_rel_ptr(&lu->lu_watchreq->lr_watcher, lu);
if ((lck->l_wait == NULL) ||
((lck->l_type & LCK_ADAPTIVE) == 0)) {
- while (lu->lu_watchreq->lr_locked == 0)
+ while (lu->lu_watchreq->lr_locked != 0)
; /* spin, then yield? */
} else {
/*