mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-10 04:07:49 +02:00
Somewhat better implementation of thread yield
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user