mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 11:12:49 +00:00
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:
commit
6e26d063a5
|
@ -441,6 +441,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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue