aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/shared_mutex
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2015-09-03 21:40:03 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2015-09-03 21:40:03 +0100
commitc8c030589bd61290418753e766f26d8f99e8b074 (patch)
tree6ccdb00e2f3c87698b3d17ce420cdebda05881f2 /libstdc++-v3/include/std/shared_mutex
parent433f6725cade960da390716e5d9901d16e80cbff (diff)
downloadgcc-c8c030589bd61290418753e766f26d8f99e8b074.zip
gcc-c8c030589bd61290418753e766f26d8f99e8b074.tar.gz
gcc-c8c030589bd61290418753e766f26d8f99e8b074.tar.bz2
Clean up libstdc++ includes slightly.
* include/bits/shared_ptr_base.h: Add required header. * include/std/condition_variable: Likewise. * include/std/mutex: Remove unused header. * include/std/shared_mutex: Remove redundant header. (shared_mutex::shared_mutex()): Replace throw with __throw_bad_alloc. From-SVN: r227469
Diffstat (limited to 'libstdc++-v3/include/std/shared_mutex')
-rw-r--r--libstdc++-v3/include/std/shared_mutex3
1 files changed, 1 insertions, 2 deletions
diff --git a/libstdc++-v3/include/std/shared_mutex b/libstdc++-v3/include/std/shared_mutex
index ae5f199..69107cc 100644
--- a/libstdc++-v3/include/std/shared_mutex
+++ b/libstdc++-v3/include/std/shared_mutex
@@ -36,7 +36,6 @@
#else
#include <bits/c++config.h>
-#include <mutex>
#include <condition_variable>
#include <bits/functexcept.h>
@@ -80,7 +79,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
int __ret = pthread_rwlock_init(&_M_rwlock, NULL);
if (__ret == ENOMEM)
- throw bad_alloc();
+ __throw_bad_alloc();
else if (__ret == EAGAIN)
__throw_system_error(int(errc::resource_unavailable_try_again));
else if (__ret == EPERM)