summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_cond.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2003-04-01 22:41:41 +0000
committerJeff Roberson <jeff@FreeBSD.org>2003-04-01 22:41:41 +0000
commit00c301540edec7f15494edaa56e2477fa73c4072 (patch)
tree57e53bd64ff482e07d9e7557a1aa98cbe03389c6 /lib/libthr/thread/thr_cond.c
parent901d86ae8a350e8a2625ddc90c1b8b84acaec8f2 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_cond.c')
-rw-r--r--lib/libthr/thread/thr_cond.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_cond.c b/lib/libthr/thread/thr_cond.c
index 0327575ec2c5..6bee687a217c 100644
--- a/lib/libthr/thread/thr_cond.c
+++ b/lib/libthr/thread/thr_cond.c
@@ -275,12 +275,14 @@ _pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex,
}
PTHREAD_SET_STATE(curthread, PS_COND_WAIT);
+ GIANT_UNLOCK(curthread);
rval = _thread_suspend(curthread, time);
if (rval == -1) {
printf("foo");
fflush(stdout);
abort();
}
+ GIANT_LOCK(curthread);
done = (seqno != (*cond)->c_seqno);