diff options
author | Torvald Riegel <triegel@redhat.com> | 2015-01-16 19:50:43 +0000 |
---|---|---|
committer | Torvald Riegel <torvald@gcc.gnu.org> | 2015-01-16 19:50:43 +0000 |
commit | eae801bacc085da3a40c4db2e543aaae753f71be (patch) | |
tree | 7e0f7a52bc8fea8db2cc39c259441e1c7ab73feb /libstdc++-v3/config/abi/pre/gnu.ver | |
parent | 1175297f6ed139cf3019a13e8333c00cd5f91644 (diff) | |
download | gcc-eae801bacc085da3a40c4db2e543aaae753f71be.zip gcc-eae801bacc085da3a40c4db2e543aaae753f71be.tar.gz gcc-eae801bacc085da3a40c4db2e543aaae753f71be.tar.bz2 |
libstdc++: Optimize synchronization in std::future if futexes are available.
* src/c++11/futex.cc: New file.
* include/bits/atomic_futex.h: New file.
* include/std/future (__future_base::_State_baseV2): Use
atomic_futex_unsigned instead of mutex+condvar.
* src/c++11/futex.cc: Likewise.
* include/Makefile.am: Add atomic_futex.h.
* include/Makefile.in: Likewise.
* src/c++11/Makefile.am: Add futex.cc.
* src/c++11/Makefile.in: Likewise.
From-SVN: r219770
Diffstat (limited to 'libstdc++-v3/config/abi/pre/gnu.ver')
-rw-r--r-- | libstdc++-v3/config/abi/pre/gnu.ver | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/config/abi/pre/gnu.ver b/libstdc++-v3/config/abi/pre/gnu.ver index 83f4e8c..dc83ad4 100644 --- a/libstdc++-v3/config/abi/pre/gnu.ver +++ b/libstdc++-v3/config/abi/pre/gnu.ver @@ -1764,6 +1764,11 @@ GLIBCXX_3.4.21 { _ZNSt7codecvtID[is]c11__mbstate_t*; _ZT[ISV]St7codecvtID[is]c11__mbstate_tE; + extern "C++" + { + std::__atomic_futex_unsigned_base*; + }; + } GLIBCXX_3.4.20; |