[PATCH v2] tests: posix: use cpu clock for sleep

DJ Delorie dj@redhat.com
Wed Feb 18 15:55:38 GMT 2026


Yury Khrustalev <yury.khrustalev@arm.com> writes:
> The problem is that it doesn't to nothing exactly: it advances "time" by
> whatever delta we're waiting for but does so instantly so the current
> thread continues but its perception of the result of time() has changed
> in a "correct" way.

Ok, that's evil, as it means program wall time is disconnected from real
wall time.  Does usleep() do that?  If it does, I don't see any way
around it besides your original patch.  Or declare such emulations
broken and move forward ;-)



More information about the Libc-alpha mailing list