[Bug libstdc++/41861] [DR 887][C++0x] <condition_variable> does not use monotonic_clock

mac at mcrowe dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 25 11:21:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41861

--- Comment #17 from Mike Crowe <mac at mcrowe dot com> ---
In https://sourceware.org/ml/libc-alpha/2019-02/msg00637.html , I proposed the
addition of the pthread_cond_clockwait function (among others) to glibc, and
whilst there are a few comments on the patches, there's been no fundamental
objections. I'm just working on sorting out some things in the test suite
before these patches can land.

Once this function is available in glibc, it will be relatively straightforward
to support both steady_clock and system_clock correctly in condition_variable.

After many years of me letting this languish, I'm optimistic that we can get
this fixed properly before the tenth anniversay of Aaron's original bug
submission!

However, in the meantime, I wouldn't object to using steady_clock by default.


More information about the Gcc-bugs mailing list