diff options
| author | ad <ad@NetBSD.org> | 2008-05-25 17:11:13 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2008-05-25 17:11:13 +0000 |
| commit | 49ec182c8c50449337bbae0dac23cc4ccf68f64d (patch) | |
| tree | c276f89ef0390f3ca8e6b19b940b709d977394a6 /lib/libpthread/pthread_cond.c | |
| parent | 2bcb8bf1c4a2927911cb14c03d6258adc68b0c08 (diff) | |
Fix error in previous.
Diffstat (limited to 'lib/libpthread/pthread_cond.c')
| -rw-r--r-- | lib/libpthread/pthread_cond.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libpthread/pthread_cond.c b/lib/libpthread/pthread_cond.c index a243f31937d..7cd3e752f72 100644 --- a/lib/libpthread/pthread_cond.c +++ b/lib/libpthread/pthread_cond.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_cond.c,v 1.43 2008/05/25 17:05:28 ad Exp $ */ +/* $NetBSD: pthread_cond.c,v 1.44 2008/05/25 17:11:13 ad Exp $ */ /*- * Copyright (c) 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread_cond.c,v 1.43 2008/05/25 17:05:28 ad Exp $"); +__RCSID("$NetBSD: pthread_cond.c,v 1.44 2008/05/25 17:11:13 ad Exp $"); #include <errno.h> #include <sys/time.h> @@ -121,7 +121,9 @@ pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, pthread__spinunlock(self, &cond->ptc_lock); do { + self->pt_willpark = 1; pthread_mutex_unlock(mutex); + self->pt_willpark = 0; self->pt_blocking++; retval = _lwp_park(abstime, self->pt_unpark, __UNVOLATILE(&mutex->ptm_waiters), |
