* 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
+2015-09-28 Jonathan Wakely <jwakely@redhat.com>
+
+ * 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).
+
2015-09-25 Ville Voutilainen <ville.voutilainen@gmail.com>
Avoid creating dangling references in case of nested tuples
notify_all() noexcept;
void
- wait(unique_lock<mutex>& __lock);
+ wait(unique_lock<mutex>& __lock) noexcept;
template<typename _Predicate>
void
}
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