diff options
author | mtm <mtm@FreeBSD.org> | 2004-03-27 14:39:21 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2004-03-27 14:39:21 +0000 |
commit | 9481d0539ded5c181074110b4561003edab1a015 (patch) | |
tree | 458ef2db8a501d133444eecda22e11a529a5c6ea /lib/libthr/thread/thr_mutex.c | |
parent | 02e9e2319ae04ec9ce99369c799e56b81f210ee7 (diff) | |
download | FreeBSD-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_mutex.c')
-rw-r--r-- | lib/libthr/thread/thr_mutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index 774527b..75d7323 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -901,7 +901,7 @@ get_mcontested(pthread_mutex_t mutexp, const struct timespec *abstime) _thread_critical_exit(curthread); _SPINUNLOCK(&mutexp->lock); error = _thread_suspend(curthread, abstime); - if (error != 0 && error != EAGAIN && error != EINTR) + if (error != 0 && error != ETIMEDOUT && error != EINTR) PANIC("Cannot suspend on mutex."); _SPINLOCK(&mutexp->lock); _thread_critical_enter(curthread); |