[RTEMS Project] #3891: Implement pthread_getcpuclockid()

RTEMS trac trac at rtems.org
Fri Apr 3 17:40:08 UTC 2020


#3891: Implement pthread_getcpuclockid()
------------------------------+-------------------------
 Reporter:  Joel Sherrill     |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Indefinite
Component:  posix             |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  POSIX-Compliance  |  Blocked By:
 Blocking:                    |
------------------------------+-------------------------
Description changed by Joel Sherrill:

Old description:

> The pthread_getcpuclockid() method currently returns ENOSYS. It should be
> implemented. Since each thread has execution time statistics with it,
> this should just be a matter of figuring out how the clock id is
> specified for each thread.
>
> https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_getcpuclockid.html

New description:

 The pthread_getcpuclockid() method currently returns ENOSYS. It should be
 implemented. Since each thread has execution time statistics with it, this
 should just be a matter of figuring out how the clock id is specified for
 each thread.

 https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_getcpuclockid.html

 The thread ID can be reused as the per thread cpu clock ID because it is
 distinct from any defined clock id.

 Beyond adding the one method, the methods clock_gettime and clock_settime
 must also be modified to support this clock type.

--

--
Ticket URL: <http://devel.rtems.org/ticket/3891#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list