diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2015-09-28 19:44:40 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2015-09-28 19:44:40 +0100 |
commit | 80400b0477598a858173d16c01abfd607a657722 (patch) | |
tree | 4f9f3894991a0125d737d2fc928d471ccfd55731 /libstdc++-v3/src | |
parent | 7009b073c56b40b280408c0ab69957651372c42e (diff) | |
download | gcc-80400b0477598a858173d16c01abfd607a657722.zip gcc-80400b0477598a858173d16c01abfd607a657722.tar.gz gcc-80400b0477598a858173d16c01abfd607a657722.tar.bz2 |
LWG 2135: terminate() in condition_variable::wait()
* include/std/condition_variable (condition_variable::wait): Add
noexcept.
* src/c++11/condition_variable.cc (condition_variable::wait): Call
std::terminate on error (DR 2135).
From-SVN: r228217
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/c++11/condition_variable.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/src/c++11/condition_variable.cc b/libstdc++-v3/src/c++11/condition_variable.cc index cc0f6e4..fd850cb 100644 --- a/libstdc++-v3/src/c++11/condition_variable.cc +++ b/libstdc++-v3/src/c++11/condition_variable.cc @@ -48,12 +48,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } void - condition_variable::wait(unique_lock<mutex>& __lock) + condition_variable::wait(unique_lock<mutex>& __lock) noexcept { int __e = __gthread_cond_wait(&_M_cond, __lock.mutex()->native_handle()); if (__e) - __throw_system_error(__e); + std::terminate(); } void |