Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2012 02:09:07 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r238762 - stable/8/lib/libthr/thread
Message-ID:  <201207250209.q6P297iY098661@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207250209.q6P297iY098661>