svn commit: r238762 - stable/8/lib/libthr/thread

David Xu davidxu at FreeBSD.org
Wed Jul 25 02:09:07 UTC 2012


Author: davidxu
Date: Wed Jul 25 02:09:06 2012
New Revision: 238762
URL: http://svn.freebsd.org/changeset/base/238762

Log:
  Use target thread's scheduling policy not current's.

Modified:
  stable/8/lib/libthr/thread/thr_setprio.c

Modified: stable/8/lib/libthr/thread/thr_setprio.c
==============================================================================
--- stable/8/lib/libthr/thread/thr_setprio.c	Wed Jul 25 02:05:59 2012	(r238761)
+++ stable/8/lib/libthr/thread/thr_setprio.c	Wed Jul 25 02:09:06 2012	(r238762)
@@ -69,7 +69,7 @@ _pthread_setprio(pthread_t pthread, int 
 			ret = 0;
 		} else {
 			ret = _thr_setscheduler(pthread->tid,
-				curthread->attr.sched_policy, &param);
+				pthread->attr.sched_policy, &param);
 			if (ret == -1)
 				ret = errno;
 			else


More information about the svn-src-all mailing list