From c8a4eae56fe4d2d025fd70bb72c7403883b74af9 Mon Sep 17 00:00:00 2001 From: David Xu Date: Wed, 19 Mar 2008 09:33:07 +0000 Subject: 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. --- lib/libthr/thread/thr_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index 2e7a84181df7..58fb1a10f091 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); } } -- cgit v1.3