svn commit: r238761 - stable/8/lib/libthr/thread
David Xu
davidxu at FreeBSD.org
Wed Jul 25 02:06:00 UTC 2012
Author: davidxu
Date: Wed Jul 25 02:05:59 2012
New Revision: 238761
URL: http://svn.freebsd.org/changeset/base/238761
Log:
Release a reference count in case priority needn't
to be changed.
Modified:
stable/8/lib/libthr/thread/thr_setschedparam.c
Modified: stable/8/lib/libthr/thread/thr_setschedparam.c
==============================================================================
--- stable/8/lib/libthr/thread/thr_setschedparam.c Wed Jul 25 01:57:53 2012 (r238760)
+++ stable/8/lib/libthr/thread/thr_setschedparam.c Wed Jul 25 02:05:59 2012 (r238761)
@@ -78,6 +78,7 @@ _pthread_setschedparam(pthread_t pthread
pthread->attr.prio == param->sched_priority)) {
pthread->attr.prio = param->sched_priority;
THR_THREAD_UNLOCK(curthread, pthread);
+ _thr_ref_delete(curthread, pthread);
return (0);
}
ret = _thr_setscheduler(pthread->tid, policy, param);
More information about the svn-src-stable
mailing list