diff options
author | davidxu <davidxu@FreeBSD.org> | 2008-03-19 09:33:07 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2008-03-19 09:33:07 +0000 |
commit | 5e11ba1ac44ccccea75ec21b9b34b56923fd8285 (patch) | |
tree | f69a326c9c5120de29dc1202dbace9027961ad46 | |
parent | a6c50de14000f5f199ad7e755bf97164ec2e6596 (diff) | |
download | FreeBSD-src-5e11ba1ac44ccccea75ec21b9b34b56923fd8285.zip FreeBSD-src-5e11ba1ac44ccccea75ec21b9b34b56923fd8285.tar.gz |
don't reduce new thread's refcount if current thread can not set cpuset
for it, since the new thread will reduce it by itself.
-rw-r--r-- | lib/libthr/thread/thr_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index 2e7a841..58fb1a1 100644 --- a/lib/libthr/thread/thr_create.c +++ b/lib/libthr/thread/thr_create.c @@ -218,7 +218,7 @@ out: if (ret) { THREAD_LIST_LOCK(curthread); new_thread->tlflags |= TLFLAGS_DETACHED; - _thr_ref_delete_unlocked(curthread, new_thread); + THR_GCLIST_ADD(new_thread); THREAD_LIST_UNLOCK(curthread); } } |