aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src/compatibility.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely.gcc@gmail.com>2009-05-16 10:09:02 +0000
committerJonathan Wakely <jwakely.gcc@gmail.com>2009-05-16 10:09:02 +0000
commit17a58fa76de613b808313ba70a2c949c9f620843 (patch)
tree8b09386ab47b551663c80bdae40a4012984450ac /libstdc++-v3/src/compatibility.cc
parent6573910a8cb500e6a7af95ea4ca696ae642c558e (diff)
2009-05-13 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/std/mutex: Move std::lock_error to ... * src/compatibility.cc: Here. * src/mutex.cc: Likewise. * testsuite/30_threads/headers/mutex/types_std_c++0x.cc: Add checks for lock types and remove std::lock_error check. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@147609 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src/compatibility.cc')
-rw-r--r--libstdc++-v3/src/compatibility.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/libstdc++-v3/src/compatibility.cc b/libstdc++-v3/src/compatibility.cc
index 8889749eed8..6b3c19b31e4 100644
--- a/libstdc++-v3/src/compatibility.cc
+++ b/libstdc++-v3/src/compatibility.cc
@@ -513,6 +513,23 @@ extern __attribute__((used, weak)) const void * const _ZTIPKe[4]
(void *) _ZTSPKe, (void *) 1L, (void *) _ZTIe };
#endif // _GLIBCXX_LONG_DOUBLE_COMPAT
+// gcc-4.4.0
+// <mutex> exported std::lock_error
+#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)
+namespace std
+{
+ class lock_error : public exception
+ {
+ public:
+ virtual const char*
+ _GLIBCXX_CONST what() const throw();
+ };
+
+ const char*
+ lock_error::what() const throw()
+ { return "std::lock_error"; }
+}
+#endif
#ifdef _GLIBCXX_SYMVER_DARWIN