Date: Wed, 25 Jul 2012 02:05:59 +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: r238761 - stable/8/lib/libthr/thread Message-ID: <201207250205.q6P25xHf098381@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207250205.q6P25xHf098381>