diff options
author | kris <kris@FreeBSD.org> | 2007-10-30 09:24:23 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2007-10-30 09:24:23 +0000 |
commit | 9e91eb96b80e36cdf1380ce82b115f218daee4be (patch) | |
tree | 7632c947a04fe1ada12a2d58bd832dafcf2dd0d7 /lib/libthr | |
parent | 97a20b1db74998b4f5211f1961a0c9d7e51b697a (diff) | |
download | FreeBSD-src-9e91eb96b80e36cdf1380ce82b115f218daee4be.zip FreeBSD-src-9e91eb96b80e36cdf1380ce82b115f218daee4be.tar.gz |
Adaptive mutexes should have the same deadlock detection properties that
default (errorcheck) mutexes do.
Noticed by: davidxu
Diffstat (limited to 'lib/libthr')
-rw-r--r-- | lib/libthr/thread/thr_mutex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index 2cc3ce0..d743ca9 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -550,6 +550,7 @@ mutex_self_lock(pthread_mutex_t m, const struct timespec *abstime) switch (m->m_type) { case PTHREAD_MUTEX_ERRORCHECK: + case PTHREAD_MUTEX_ADAPTIVE_NP: if (abstime) { clock_gettime(CLOCK_REALTIME, &ts1); TIMESPEC_SUB(&ts2, abstime, &ts1); |