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:
parent
e6ad438a0b
commit
3365bd8a23
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user