summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_init.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2012-05-03 09:17:31 +0000
committerDavid Xu <davidxu@FreeBSD.org>2012-05-03 09:17:31 +0000
commit84ac0fb8ca7ae87f76efda90eea69698c1109875 (patch)
treeed9550b886413ddf07f7d057d29b37d1ce5bce06 /lib/libthr/thread/thr_init.c
parentbdf942c3f0d8d260cdb78793a3ff32e920844f32 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
-rw-r--r--lib/libthr/thread/thr_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c
index 86abad8deaff..e1e304abef68 100644
--- a/lib/libthr/thread/thr_init.c
+++ b/lib/libthr/thread/thr_init.c
@@ -112,6 +112,7 @@ size_t _thr_stack_initial = THR_STACK_INITIAL;
int _thr_page_size;
int _thr_spinloops;
int _thr_yieldloops;
+int _thr_queuefifo = 4;
int _gc_count;
struct umutex _mutex_static_lock = DEFAULT_UMUTEX;
struct umutex _cond_static_lock = DEFAULT_UMUTEX;
@@ -470,6 +471,9 @@ init_private(void)
env = getenv("LIBPTHREAD_YIELDLOOPS");
if (env)
_thr_yieldloops = atoi(env);
+ env = getenv("LIBPTHREAD_QUEUE_FIFO");
+ if (env)
+ _thr_queuefifo = atoi(env);
TAILQ_INIT(&_thr_atfork_list);
}
init_once = 1;