Opened on 02/22/16 at 14:20:08
Closed on 12/05/17 at 17:04:20
#2608 closed defect (fixed)
POSIX Condition Variables Clock Attribute Support
Reported by: | Joel Sherrill | Owned by: | Gedare Bloom |
---|---|---|---|
Priority: | normal | Milestone: | 5.1 |
Component: | posix | Version: | 5 |
Severity: | normal | Keywords: | POSIX-Compliance |
Cc: | Sebastian Huber | Blocked By: | |
Blocking: |
Description
I am beginning to add support for the clock attribute to POSIX condition variables.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_condattr_getclock.html
Since the clock can't be a CPU time clock, that leaves CLOCK_MONOTONIC and CLOCK_REALTIME. The thread queue is based on CLOCK_MONOTONIC and does not have an option to use CLOCK_REALTIME. Threads and timers waiting on CLOCK_REALTIME should be impacted by time of day changes.
https://docs.google.com/document/d/1GsGer0t84p-nUfZFim4Ty0LTDYNhgKBvlwip_gLQjTY/edit?usp=sharing is a Google doc with my notes so far in it on POSIX clocks. I will move it to the Wiki as it turns into something more concrete than notes and reflects plans/code.
So the first issue is how best to alter the thread queue to support using either clock source? And what does that do to the current ticks based API since you proposed different time representations for the ticks (relative/monotonic) and seconds (absolute/realtime) structures?
Change History (8)
comment:1 Changed on 06/16/16 at 14:04:39 by Joel Sherrill <joel@…>
comment:2 Changed on 04/03/17 at 23:18:33 by Joel Sherrill
Keywords: | POSIX-Compliance added |
---|
comment:3 Changed on 05/11/17 at 07:31:02 by Sebastian Huber
Milestone: | 4.12 → 4.12.0 |
---|
comment:4 Changed on 10/11/17 at 23:18:54 by Joel Sherrill
Owner: | changed from Joel Sherrill to Gedare Bloom |
---|---|
Status: | new → assigned |
Gedare.. I checked and think this is implemented and I thought you did the final part of the work. If you concur it is implemented, please close.
comment:6 Changed on 10/16/17 at 06:23:11 by Sebastian Huber
Component: | unspecified → posix |
---|
comment:7 Changed on 11/09/17 at 06:27:14 by Sebastian Huber
Milestone: | 4.12.0 → 5.1 |
---|
Milestone renamed
comment:8 Changed on 12/05/17 at 17:04:20 by Gedare Bloom
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
In 6131b849081335e101f92b4a99e01572153d44f5/rtems: