diff options
author | Daniel Eischen <deischen@FreeBSD.org> | 2003-04-18 07:09:43 +0000 |
---|---|---|
committer | Daniel Eischen <deischen@FreeBSD.org> | 2003-04-18 07:09:43 +0000 |
commit | e4c2ac1637ab1039778694ccb3b91425371e0562 (patch) | |
tree | c4540fbdb5dd93853283bd4d70315482a539912b /lib/libpthread/thread/thr_init.c | |
parent | 7cd650a97275c710e63ba7e1f58dbb394de03c1d (diff) | |
download | src-e4c2ac1637ab1039778694ccb3b91425371e0562.tar.gz src-e4c2ac1637ab1039778694ccb3b91425371e0562.zip |
Sorry folks; I accidentally committed a patch from what I was working
on a couple of days ago. This should be the most recent changes.
Noticed by: davidxu
Notes
Notes:
svn path=/head/; revision=113661
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
-rw-r--r-- | lib/libpthread/thread/thr_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c index 6ff88c87e220..626a134392f8 100644 --- a/lib/libpthread/thread/thr_init.c +++ b/lib/libpthread/thread/thr_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003 Daniel M. Eischen <deischen@FreeBSD.org> + * Copyright (c) 2003 Daniel M. Eischen <deischen@freebsd.org> * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. * @@ -280,7 +280,7 @@ _libpthread_init(struct pthread *curthread) */ _thr_initial = curthread; } - _kse_initial->k_kseg->kg_threadcount = 1; + _kse_initial->k_kseg->kg_threadcount = 0; _thr_initial->kse = _kse_initial; _thr_initial->kseg = _kse_initial->k_kseg; _thr_initial->active = 1; @@ -290,7 +290,7 @@ _libpthread_init(struct pthread *curthread) * queue. */ THR_LIST_ADD(_thr_initial); - TAILQ_INSERT_TAIL(&_kse_initial->k_kseg->kg_threadq, _thr_initial, kle); + KSEG_THRQ_ADD(_kse_initial->k_kseg, _thr_initial); /* Setup the KSE/thread specific data for the current KSE/thread. */ if (_ksd_setprivate(&_thr_initial->kse->k_ksd) != 0) |