Stratosphere: Add missing priority updates

This commit is contained in:
Michael Scire 2018-04-18 12:23:06 -06:00
parent 321286ceab
commit 49719c8a44

View File

@ -45,6 +45,10 @@ void WaitableManager::process() {
/* Handle a signaled waitable. */
/* TODO: What should be done with the result here? */
signalables[handle_index]->handle_signaled();
for (int i = 0; i < handle_index; i++) {
signalables[i]->update_priority();
}
} else if (rc == 0xEA01) {
/* Timeout. */
for (auto & waitable : signalables) {
@ -64,7 +68,11 @@ void WaitableManager::process() {
signalables[handle_index]->get_parent()->delete_child(signalables[handle_index]);
} else {
delete signalables[handle_index];
}
}
for (int i = 0; i < handle_index; i++) {
signalables[i]->update_priority();
}
} else {
/* TODO: Panic. When can this happen? */
}