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 {
|
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;
|
priority_queue_node_t n;
|
||||||
n.priority = sched_active_thread->priority;
|
n.priority = sched_active_thread->priority;
|
||||||
n.data = sched_active_pid;
|
n.data = sched_active_pid;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user