Mike Crowe added the comment:
vstinner wrote:
> The glibc 2.30 adds pthread_cond_clockwait() which could be used to use
> CLOCK_MONOTONIC. But if pthread_cond_clockwait() is available (glibc
> 2.30 or newer), it expects that pthread_condattr_setclock() is also
> available. So
Mike Crowe added the comment:
glibc v2.30 onwards provides sem_clockwait which can wait on either
CLOCK_MONOTONIC or CLOCK_REALTIME. I failed to notice that
https://sourceware.org/bugzilla/show_bug.cgi?id=14717 existed until today. :(
--
nosy: +mikecrowe