On Tue, 12 May 2026 at 07:44, Alexandre Oliva <[email protected]> wrote: > > > We've been using gettimeofday() on VxWorks, because configury didn't > state clock_gettime was available. It has been since at least > vxworks6.9, possibly earlier. Indeed, it's been available for longer > than gettimeofday(), so this enables libstdc++'s chrono.cc to work > with earlier 6.9 releases. > > We've used clock_gettime unconditionally in __gthread_cond_timedwait > for a very long time, so it's not like this brings in a new > dependency, but it allows clocks and deadlines to work with the same > precision. Before this change, we'd use gettimeofday's coarser > clocks, and finer timed waits, which makes room for imprecisions. > > Regstrapped on x86_64-linux-gnu. Also tested with gcc-15 on > aarch64-wrs-vxworks7.2, and with a much older gcc on ppc-vxworks6.9.2.2. > Ok to install?
Yes, good for me. Nice improvement I think. Thanks for the analysis of those timing issues. I know how tedious the investigation process can be. Cheers, Olivier
