1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #6067 from cgundogan/pr/cpp_rm_exception_from_noexcept_func

cpp11-compat: no exceptions in noexcept function
This commit is contained in:
Martine Lenders 2016-11-09 13:01:21 +01:00 committed by GitHub
commit 593ad5237d

View File

@ -78,11 +78,6 @@ void condition_variable::notify_all() noexcept {
}
void condition_variable::wait(unique_lock<mutex>& 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;