summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_mutex.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-12-20 04:43:34 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-12-20 04:43:34 +0000
commit842a092b7448867b61aed2beedfb89003e99e65c (patch)
treedd4940685abc260ad48b4612a46be2cb05f279aa /lib/libthr/thread/thr_mutex.c
parent4e32b7b3cc7d282700ca3df60c5378d57e65ab14 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_mutex.c')
-rw-r--r--lib/libthr/thread/thr_mutex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
index aae27aabdbaa..17e067a545e7 100644
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -136,6 +136,7 @@ mutex_init(pthread_mutex_t *mutex,
pmutex->m_lock.m_owner = UMUTEX_UNOWNED;
pmutex->m_lock.m_flags = 0;
}
+ pmutex->m_lock.m_spincount = _thr_adaptive_spin;
*mutex = pmutex;
return (0);
}