mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-18 08:11:21 +00:00
Stratosphere: Add missing priority updates
This commit is contained in:
parent
321286ceab
commit
49719c8a44
@ -45,6 +45,10 @@ void WaitableManager::process() {
|
|||||||
/* Handle a signaled waitable. */
|
/* Handle a signaled waitable. */
|
||||||
/* TODO: What should be done with the result here? */
|
/* TODO: What should be done with the result here? */
|
||||||
signalables[handle_index]->handle_signaled();
|
signalables[handle_index]->handle_signaled();
|
||||||
|
|
||||||
|
for (int i = 0; i < handle_index; i++) {
|
||||||
|
signalables[i]->update_priority();
|
||||||
|
}
|
||||||
} else if (rc == 0xEA01) {
|
} else if (rc == 0xEA01) {
|
||||||
/* Timeout. */
|
/* Timeout. */
|
||||||
for (auto & waitable : signalables) {
|
for (auto & waitable : signalables) {
|
||||||
@ -65,6 +69,10 @@ void WaitableManager::process() {
|
|||||||
} else {
|
} else {
|
||||||
delete signalables[handle_index];
|
delete signalables[handle_index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < handle_index; i++) {
|
||||||
|
signalables[i]->update_priority();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
/* TODO: Panic. When can this happen? */
|
/* TODO: Panic. When can this happen? */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user