From 2224b91ac5ae5afe47365fecc5ecc52083085f6f Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 21 Jul 2011 11:09:56 +0000 Subject: [PATCH] mutex (timed_mutex, [...]): Update to use steady_clock instead of monotonic_clock. 2011-07-21 Paolo Carlini * include/std/mutex (timed_mutex, recursive_timed_mutex): Update to use steady_clock instead of monotonic_clock. * config/abi/pre/gnu.ver: Export steady_clock::now. From-SVN: r176560 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/config/abi/pre/gnu.ver | 3 +++ libstdc++-v3/include/std/mutex | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ae002030156..3d368596335 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2011-07-21 Paolo Carlini + + * include/std/mutex (timed_mutex, recursive_timed_mutex): Update + to use steady_clock instead of monotonic_clock. + * config/abi/pre/gnu.ver: Export steady_clock::now. + 2011-07-20 Benjamin Kosnik Daniel Krugler diff --git a/libstdc++-v3/config/abi/pre/gnu.ver b/libstdc++-v3/config/abi/pre/gnu.ver index 6c07e61fe1c..3d797a8aa17 100644 --- a/libstdc++-v3/config/abi/pre/gnu.ver +++ b/libstdc++-v3/config/abi/pre/gnu.ver @@ -1289,6 +1289,9 @@ GLIBCXX_3.4.17 { _ZN11__gnu_debug29_Safe_unordered_sequence_base13_M_detach_allEv; _ZN11__gnu_debug25_Safe_local_iterator_base9_M_attachEPNS_19_Safe_sequence_baseEb; _ZN11__gnu_debug25_Safe_local_iterator_base9_M_detachEv; + + # std::chrono::steady_clock::now() + _ZNSt6chrono12steady_clock3nowEv; } GLIBCXX_3.4.16; # Symbols in the support library (libsupc++) have their own tag. diff --git a/libstdc++-v3/include/std/mutex b/libstdc++-v3/include/std/mutex index 1c66afc9e2c..184011715c7 100644 --- a/libstdc++-v3/include/std/mutex +++ b/libstdc++-v3/include/std/mutex @@ -212,7 +212,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typedef __gthread_mutex_t __native_type; #ifdef _GLIBCXX_USE_CLOCK_MONOTONIC - typedef chrono::monotonic_clock __clock_t; + typedef chrono::steady_clock __clock_t; #else typedef chrono::high_resolution_clock __clock_t; #endif @@ -317,7 +317,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typedef __gthread_recursive_mutex_t __native_type; #ifdef _GLIBCXX_USE_CLOCK_MONOTONIC - typedef chrono::monotonic_clock __clock_t; + typedef chrono::steady_clock __clock_t; #else typedef chrono::high_resolution_clock __clock_t; #endif -- 2.30.2