summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_cond.c
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2004-03-27 14:39:21 +0000
committermtm <mtm@FreeBSD.org>2004-03-27 14:39:21 +0000
commit9481d0539ded5c181074110b4561003edab1a015 (patch)
tree458ef2db8a501d133444eecda22e11a529a5c6ea /lib/libthr/thread/thr_cond.c
parent02e9e2319ae04ec9ce99369c799e56b81f210ee7 (diff)
downloadFreeBSD-src-9481d0539ded5c181074110b4561003edab1a015.zip
FreeBSD-src-9481d0539ded5c181074110b4561003edab1a015.tar.gz
Stop using signals for synchronizing threads. The performance penalty
was too much.
Diffstat (limited to 'lib/libthr/thread/thr_cond.c')
-rw-r--r--lib/libthr/thread/thr_cond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_cond.c b/lib/libthr/thread/thr_cond.c
index 367a54e..e7e91d9 100644
--- a/lib/libthr/thread/thr_cond.c
+++ b/lib/libthr/thread/thr_cond.c
@@ -285,7 +285,7 @@ cond_wait_common(pthread_cond_t * cond, pthread_mutex_t * mutex,
_thread_critical_exit(curthread);
COND_UNLOCK(*cond);
rval = _thread_suspend(curthread, (struct timespec *)abstime);
- if (rval != 0 && rval != EAGAIN && rval != EINTR) {
+ if (rval != 0 && rval != ETIMEDOUT && rval != EINTR) {
printf("foo");
fflush(stdout);
abort();
OpenPOWER on IntegriCloud