PERFORCE change 67995 for review

David Xu davidxu at FreeBSD.org
Fri Dec 31 07:10:30 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=67995

Change 67995 by davidxu at 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);


More information about the p4-projects mailing list