Somewhat better implementation of thread yield
This commit is contained in:
parent
7f5a8effbb
commit
aa75957ce2
4 changed files with 32 additions and 22 deletions
|
@ -2,7 +2,7 @@ namespace Ryujinx.Core.OsHle.Handles
|
|||
{
|
||||
class ThreadQueue
|
||||
{
|
||||
private const int LowestPriority = 0x40;
|
||||
private const int LowestPriority = 0x3f;
|
||||
|
||||
private SchedulerThread Head;
|
||||
|
||||
|
@ -63,7 +63,7 @@ namespace Ryujinx.Core.OsHle.Handles
|
|||
{
|
||||
KThread Thread = Curr.Thread;
|
||||
|
||||
if (Thread.ActualPriority < MinPriority && (Thread.CoreMask & CoreMask) != 0)
|
||||
if (Thread.ActualPriority <= MinPriority && (Thread.CoreMask & CoreMask) != 0)
|
||||
{
|
||||
if (Prev != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue