Date: Fri, 31 Dec 2004 15:10:29 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 67995 for review Message-ID: <200412311510.iBVFATYm009810@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=67995 Change 67995 by davidxu@davidxu_tiger on 2004/12/31 15:10:19 only check PS_DEAD is enough, I hope the state field will go away. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_setschedparam.c#3 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_setschedparam.c#3 (text+ko) ==== @@ -64,9 +64,7 @@ * its priority: */ THR_THREAD_LOCK(curthread, pthread); - if ((pthread->state == PS_DEAD) || - (pthread->state == PS_DEADLOCK) || - ((pthread->flags & THR_FLAGS_EXITING) != 0)) { + if (pthread->state == PS_DEAD) { THR_THREAD_UNLOCK(curthread, pthread); _thr_ref_delete(curthread, pthread); return (ESRCH);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412311510.iBVFATYm009810>