threads/168417: pthread_getcpuclockid() does not work to specification

David Xu listlog2011 at gmail.com
Thu Jul 19 09:39:32 UTC 2012


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 <davidxu at freebsd.org>
>> To: bug-followup at freebsd.org, chris.hall at 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.





More information about the freebsd-threads mailing list