aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/Kernel
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-06-09 18:19:14 -0300
committergdkchan <gab.dark.100@gmail.com>2018-06-09 18:19:14 -0300
commitaa75957ce242d58043e4af83e02a39480c7025b4 (patch)
treea779bf38dd04138d345063a699a74f9a30159a81 /Ryujinx.Core/OsHle/Kernel
parent7f5a8effbb0bbf7e972dbbfb6792cdea48455739 (diff)
Somewhat better implementation of thread yield
Diffstat (limited to 'Ryujinx.Core/OsHle/Kernel')
-rw-r--r--Ryujinx.Core/OsHle/Kernel/SvcThread.cs2
-rw-r--r--Ryujinx.Core/OsHle/Kernel/SvcThreadSync.cs2
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);