1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

cpp11-compat: no exceptions in noexcept function

This commit is contained in:
Cenk Gündoğan 2016-11-07 16:30:09 +01:00
parent e6ad438a0b
commit 3365bd8a23

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;