[0/2] PR libstdc++/41861 Add full steady_clock support to condition_variable
mbox series

Message ID cover.32028f8ac2881c50370c35a4543c2882fb978461.1563209229.git-series.mac@mcrowe.com
Headers show
Series
  • PR libstdc++/41861 Add full steady_clock support to condition_variable
Related show

Message

Mike Crowe July 15, 2019, 4:47 p.m. UTC
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

Comments

Mike Crowe Aug. 19, 2019, 4:26 p.m. UTC | #1
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.