Ticket 4429

zack leung zakthertemsdev at gmail.com
Wed Oct 6 00:30:41 UTC 2021


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