diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-23 22:11:23 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-23 22:11:23 +0000 |
commit | a2bb721d8e1a576841fb80f1c78f0694014d4e8b (patch) | |
tree | bd11ed625b040c97f7b7dc87865300f4d68dbf00 /libstdc++-v3/config | |
parent | 66ee291faa52558caedbc214d662b7b7742eca7e (diff) | |
download | ppe42-gcc-a2bb721d8e1a576841fb80f1c78f0694014d4e8b.tar.gz ppe42-gcc-a2bb721d8e1a576841fb80f1c78f0694014d4e8b.zip |
PR libstdc++/52680
* acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Check for usleep and
sleep if nanosleep is not available. Bump libtool revision.
* config.h.in: Regenerate.
* configure: Likewise.
* config/abi/pre/gnu.ver (GLIBCXX_3.4.18): Add __sleep_for.
* include/std/thread (this_thread::__sleep_for): Add.
(this_thread::yield, this_thread::sleep_until, this_thread::sleep_for):
Declare unconditionally.
* src/c++11/thread.cc (this_thread::__sleep_for): Define.
* testsuite/lib/libstdc++.exp (check_v3_target_nanosleep): Rename to
check_v3_target_sleep.
* testsuite/lib/dg-options.exp (dg-require-nanosleep): Rename to
dg-require-sleep.
* testsuite/30_threads/condition_variable_any/53830.cc: Update.
* testsuite/30_threads/this_thread/2.cc: Likewise.
* testsuite/30_threads/this_thread/3.cc: Likewise.
* testsuite/30_threads/this_thread/4.cc: Likewise.
* testsuite/30_threads/async/54297.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193769 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config')
-rw-r--r-- | libstdc++-v3/config/abi/pre/gnu.ver | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/config/abi/pre/gnu.ver b/libstdc++-v3/config/abi/pre/gnu.ver index 949ab50e5e3..8b1ec0da917 100644 --- a/libstdc++-v3/config/abi/pre/gnu.ver +++ b/libstdc++-v3/config/abi/pre/gnu.ver @@ -1339,6 +1339,9 @@ GLIBCXX_3.4.18 { # construction vtable _ZTCSt*; + # std::this_thread::__sleep_for + _ZNSt11this_thread11__sleep_for*; + } GLIBCXX_3.4.17; # Symbols in the support library (libsupc++) have their own tag. |