diff options
author | davidxu <davidxu@FreeBSD.org> | 2007-05-09 08:39:33 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2007-05-09 08:39:33 +0000 |
commit | d97c4f1e52204982c2c5d0ccda0b2e54bf010712 (patch) | |
tree | 82992c905443fab7febb24abd2e516ef359f7c8f /lib/libthr/thread/thr_init.c | |
parent | 2ddb46eeb6224ecb7078555faf58fa91374c0760 (diff) | |
download | FreeBSD-src-d97c4f1e52204982c2c5d0ccda0b2e54bf010712.zip FreeBSD-src-d97c4f1e52204982c2c5d0ccda0b2e54bf010712.tar.gz |
backout experimental adaptive spinning mutex for product use.
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
-rw-r--r-- | lib/libthr/thread/thr_init.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c index 7d00a34..981941b 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -66,7 +66,6 @@ pthreadlist _thread_gc_list = TAILQ_HEAD_INITIALIZER(_thread_gc_list); int _thread_active_threads = 1; atfork_head _thr_atfork_list = TAILQ_HEAD_INITIALIZER(_thr_atfork_list); struct umutex _thr_atfork_lock = DEFAULT_UMUTEX; -int _thr_adaptive_spin = 0; struct pthread_prio _thr_priorities[3] = { {RTP_PRIO_MIN, RTP_PRIO_MAX, 0}, /* FIFO */ @@ -424,12 +423,6 @@ init_private(void) { size_t len; int mib[2]; - char *p; - - if (init_once == 0) { - if ((p = getenv("LIBPTHREAD_ADAPTIVE_SPIN")) != NULL) - _thr_adaptive_spin = atoi(p); - } _thr_umutex_init(&_mutex_static_lock); _thr_umutex_init(&_cond_static_lock); |