diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-06-09 18:19:14 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-06-09 18:19:14 -0300 |
| commit | aa75957ce242d58043e4af83e02a39480c7025b4 (patch) | |
| tree | a779bf38dd04138d345063a699a74f9a30159a81 /Ryujinx.Core/OsHle/Kernel | |
| parent | 7f5a8effbb0bbf7e972dbbfb6792cdea48455739 (diff) | |
Somewhat better implementation of thread yield
Diffstat (limited to 'Ryujinx.Core/OsHle/Kernel')
| -rw-r--r-- | Ryujinx.Core/OsHle/Kernel/SvcThread.cs | 2 | ||||
| -rw-r--r-- | Ryujinx.Core/OsHle/Kernel/SvcThreadSync.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Core/OsHle/Kernel/SvcThread.cs b/Ryujinx.Core/OsHle/Kernel/SvcThread.cs index 8aa26dd3..11841758 100644 --- a/Ryujinx.Core/OsHle/Kernel/SvcThread.cs +++ b/Ryujinx.Core/OsHle/Kernel/SvcThread.cs @@ -87,7 +87,7 @@ namespace Ryujinx.Core.OsHle.Kernel if (TimeoutNs == 0) { - Process.Scheduler.SetReschedule(CurrThread.ActualCore); + Process.Scheduler.Yield(CurrThread); } else { diff --git a/Ryujinx.Core/OsHle/Kernel/SvcThreadSync.cs b/Ryujinx.Core/OsHle/Kernel/SvcThreadSync.cs index e762c396..70107c3a 100644 --- a/Ryujinx.Core/OsHle/Kernel/SvcThreadSync.cs +++ b/Ryujinx.Core/OsHle/Kernel/SvcThreadSync.cs @@ -206,7 +206,7 @@ namespace Ryujinx.Core.OsHle.Kernel { lock (Process.ThreadSyncLock) { - //This is the new thread that will not own the mutex. + //This is the new thread that will now own the mutex. //If no threads are waiting for the lock, then it should be null. KThread OwnerThread = PopThread(CurrThread.MutexWaiters, x => x.MutexAddress == MutexAddress); |
