summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_umtx.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_umtx.c')
-rw-r--r--lib/libthr/thread/thr_umtx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_umtx.c b/lib/libthr/thread/thr_umtx.c
index 0a5ee6a..1aa89ca 100644
--- a/lib/libthr/thread/thr_umtx.c
+++ b/lib/libthr/thread/thr_umtx.c
@@ -36,6 +36,7 @@ _thr_umutex_init(struct umutex *mtx)
static struct umutex default_mtx = DEFAULT_UMUTEX;
*mtx = default_mtx;
+ mtx->m_spincount = _thr_adaptive_spin;
}
int
OpenPOWER on IntegriCloud