aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/config
diff options
context:
space:
mode:
authorChris Fairles <cfairles@gcc.gnu.org>2008-09-23 17:34:29 +0000
committerChris Fairles <cfairles@gcc.gnu.org>2008-09-23 17:34:29 +0000
commit8839907955ae3ad3240fc48dd082f5758e8dfa41 (patch)
tree35b70f711f4bbfa92cadbd4c246de21481316e41 /libstdc++-v3/config
parent1304d5813db7e623b4e64757bf95dc919d36c891 (diff)
downloadgcc-8839907955ae3ad3240fc48dd082f5758e8dfa41.zip
gcc-8839907955ae3ad3240fc48dd082f5758e8dfa41.tar.gz
gcc-8839907955ae3ad3240fc48dd082f5758e8dfa41.tar.bz2
chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined...
2008-09-23 Chris Fairles <cfairles@gcc.gnu.org> * include/std/chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined, don't typedef monotonic_clock to system_clock and instead declare new class. * src/chrono.cc: Conditionally define monotonic_clock::now(). * include/std/condition_variable (wait_until): Throw exception if __gthread_cond_timedwait returns with error other than timed_out. Use system_clock as known clock type (__clock_t) and add overloads for known and unknown clocks. In the unknown case, sync to the known clock. Implement overload taking a predicate. (wait_for): Implement overload taking a predicate. * config/abi/pre/gnu.ver: Add exports for monotonic_clock. * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc: Modify line numbers. * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc: Likewise. * testsuite/30_threads/condition_variable/cons/assign_neg.cc: Likewise. * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Likewise. * testsuite/30_threads/condition_variable/member/1.cc: New. * testsuite/30_threads/condition_variable/member/2.cc: Likewise. From-SVN: r140603
Diffstat (limited to 'libstdc++-v3/config')
-rw-r--r--libstdc++-v3/config/abi/pre/gnu.ver2
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/config/abi/pre/gnu.ver b/libstdc++-v3/config/abi/pre/gnu.ver
index df69c87..56fa9be 100644
--- a/libstdc++-v3/config/abi/pre/gnu.ver
+++ b/libstdc++-v3/config/abi/pre/gnu.ver
@@ -952,6 +952,8 @@ GLIBCXX_3.4.11 {
# chrono
_ZNSt6chrono12system_clock12is_monotonicE;
_ZNSt6chrono12system_clock3nowEv;
+ _ZNSt6chrono15monotonic_clock12is_monotonicE;
+ _ZNSt6chrono15monotonic_clock3nowEv;
# string/wstring initializer_list overloads
_ZNSs6appendESt16initializer_listIcE;