Ticket 4429

zack leung zakthertemsdev at gmail.com
Mon Oct 18 23:47:08 UTC 2021


bump


On Wed, 6 Oct 2021 at 00:30, zack leung <zakthertemsdev at gmail.com> wrote:

> For relative times, the clock identifier is not used to select the clock
> and instead always the CLOCK_MONOTONIC is used. A side-effect is that
> sleep() and nanosleep() use the wrong clock (CLOCK_MONOTONIC instead of
> CLOCK_REALTIME).
>
> I don't understand how the monotonic clock is not being used. I know that
> if it's not a realtime clock then
> Thread_queue_Context_set_enqueue_timeout_monotonic_timespec is called and i
> believe that all the appropriate branches are there to make the monotonic
> clock work.
>
> Zack
>


More information about the devel mailing list