yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Core/Scheduling: Prepare the new priority in the thread queue when svcSetPriority is called

This commit is contained in:
Subv 2015-05-11 19:38:10 -05:00
parent 10eb8b0c02
commit dbc1320923
1 changed files with 2 additions and 0 deletions

View File

@ -439,6 +439,8 @@ void Thread::SetPriority(s32 priority) {
// If thread was ready, adjust queues // If thread was ready, adjust queues
if (status == THREADSTATUS_READY) if (status == THREADSTATUS_READY)
ready_queue.move(this, current_priority, priority); ready_queue.move(this, current_priority, priority);
else
ready_queue.prepare(priority);
nominal_priority = current_priority = priority; nominal_priority = current_priority = priority;
} }