[PATCH] posix: Fix relative CLOCK_REALTIME sleep
Chris Johns
chrisj at rtems.org
Mon Aug 1 08:16:17 UTC 2022
On 1/8/2022 5:22 pm, Sebastian Huber wrote:
> A relative CLOCK_REALTIME time out shall not be affected by CLOCK_REALTIME
> changes through clock_settime(). Since our CLOCK_REALTIME is basically just
> CLOCK_MONOTONIC plus an offset, we can simply use the CLOCK_MONOTONIC watchdog
> for relative CLOCK_REALTIME time outs.
Thank for this. I can confirm it works with the modified test code I attached to
the ticket. I am ts-validation-no-clock-0.exe now failing on xilinx_zynq_a9_qemu
but I am not sure?
There is one issue my test changes have exposed and that is the ticks a thread
sleeps for is 1 more than the requested number.
Chris
More information about the devel
mailing list