From owner-freebsd-threads@FreeBSD.ORG Thu Jul 19 09:39:32 2012 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C409D1065680; Thu, 19 Jul 2012 09:39:32 +0000 (UTC) (envelope-from listlog2011@gmail.com) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 329B38FC25; Thu, 19 Jul 2012 09:39:32 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6J9dTjH018402; Thu, 19 Jul 2012 09:39:30 GMT (envelope-from listlog2011@gmail.com) Message-ID: <5007D5D0.8060007@gmail.com> Date: Thu, 19 Jul 2012 17:39:28 +0800 From: David Xu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: davidxu@freebsd.org References: <201207120800.q6C80ISC073892@freefall.freebsd.org> <5007D4BD.6030402@gmail.com> In-Reply-To: <5007D4BD.6030402@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: threads/168417: pthread_getcpuclockid() does not work to specification X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: davidxu@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2012 09:39:32 -0000 On 2012/7/19 17:34, David Xu wrote: > On 2012/7/12 16:00, David Xu wrote: >> The following reply was made to PR threads/168417; it has been noted >> by GNATS. >> >> From: David Xu >> To: bug-followup@freebsd.org, chris.hall@highwayman.com >> Cc: >> Subject: Re: threads/168417: pthread_getcpuclockid() does not work to >> specification >> Date: Thu, 12 Jul 2012 15:51:02 +0800 >> >> I have worked out a patch trying to fix the problem: >> http://people.freebsd.org/~davidxu/patch/cputime_clockid.diff > > I have updated the patch, if no objection, I would commit it soon. > > http://people.freebsd.org/~davidxu/patch/cputime_clockid3.diff I still only allow getting thread cpu time in same process, note that it does not support creating timer via timer_create(), it is just a counter.