Browse Source

cpp11-compat: no exceptions in noexcept function

pr/spi.typo
Cenk Gündoğan 6 years ago
parent
commit
3365bd8a23
  1. 5
      sys/cpp11-compat/condition_variable.cpp

5
sys/cpp11-compat/condition_variable.cpp

@ -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…
Cancel
Save