From 3365bd8a235f4dcac68fd867e808da406b51e584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cenk=20G=C3=BCndo=C4=9Fan?= Date: Mon, 7 Nov 2016 16:30:09 +0100 Subject: [PATCH] cpp11-compat: no exceptions in noexcept function --- sys/cpp11-compat/condition_variable.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/cpp11-compat/condition_variable.cpp b/sys/cpp11-compat/condition_variable.cpp index 6e54f9a071..0a605bb130 100644 --- a/sys/cpp11-compat/condition_variable.cpp +++ b/sys/cpp11-compat/condition_variable.cpp @@ -78,11 +78,6 @@ void condition_variable::notify_all() noexcept { } void condition_variable::wait(unique_lock& lock) noexcept { - if (!lock.owns_lock()) { - throw std::system_error( - std::make_error_code(std::errc::operation_not_permitted), - "Mutex not locked."); - } priority_queue_node_t n; n.priority = sched_active_thread->priority; n.data = sched_active_pid;