This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 0/2] PR libstdc++/41861 Add full steady_clock support to condition_variable
- From: Mike Crowe <mac at mcrowe dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 Aug 2019 17:26:54 +0100
- Subject: Re: [PATCH 0/2] PR libstdc++/41861 Add full steady_clock support to condition_variable
- References: <cover.32028f8ac2881c50370c35a4543c2882fb978461.1563209229.git-series.mac@mcrowe.com>
On Monday 15 July 2019 at 17:47:47 +0100, Mike Crowe wrote:
> The pthread_cond_clockwait function was recently added[1] to glibc,
> and is due to be released in glibc 2.30. If this function is available
> in the C library it can be used it to fix
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41861 by supporting
> std::chrono::steady_clock properly with std::condition_variable.
>
> Mike Crowe (2):
> Add user-defined clock to libstdc++ condition_variable tests
> PR libstdc++/41861 Add full steady_clock support to condition_variable
>
> libstdc++-v3/ChangeLog | 34 +++++++++++++++++++++++++++++-
> libstdc++-v3/acinclude.m4 | 31 +++++++++++++++++++++++++++-
> libstdc++-v3/config.h.in | 3 +++-
> libstdc++-v3/configure | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
> libstdc++-v3/configure.ac | 3 +++-
> libstdc++-v3/include/std/condition_variable | 52 +++++++++++++++++++++++++++++++++++++++------
> libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc | 29 ++++++++++++++++++++++---
> libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc | 29 ++++++++++++++++++++++---
> 8 files changed, 252 insertions(+), 12 deletions(-)
>
> base-commit: 7b0d7c79224b412ea5073593943ab1525cbbda73
> --
> git-series 0.9.1
glibc 2.30 has now been released and contains pthread_cond_clockwait.
Mike.