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

Merge pull request #757 from Subv/scheduling

Core/Scheduling: Prepare the new priority in the thread queue when svcSetPriority is called
This commit is contained in:
bunnei 2015-05-11 22:54:00 -04:00
commit 6e26d063a5
1 changed files with 2 additions and 0 deletions

View File

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