Commit 80400b04 by Jonathan Wakely Committed by Jonathan Wakely

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
parent 7009b073
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
......
......@@ -89,7 +89,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
notify_all() noexcept;
void
wait(unique_lock<mutex>& __lock);
wait(unique_lock<mutex>& __lock) noexcept;
template<typename _Predicate>
void
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment