Просмотр исходного кода

[HLE/Kernel] Yield when cond var is signaled

gdkchan 8 лет назад
Родитель
Сommit
ac80e7d3f9

+ 2 - 0
Ryujinx.Core/OsHle/Kernel/ConditionVariable.cs

@@ -111,6 +111,8 @@ namespace Ryujinx.Core.OsHle.Kernel
                     }
                 }
             }
+
+            Process.Scheduler.Yield(Thread);
         }
 
         private void AcquireCondVarValue()

+ 1 - 1
Ryujinx.Core/OsHle/Kernel/SvcHandler.cs

@@ -18,7 +18,7 @@ namespace Ryujinx.Core.OsHle.Kernel
         private Process Process;
         private AMemory Memory;
 
-        private ConcurrentDictionary<long, MutualExclusion>     Mutexes;
+        private ConcurrentDictionary<long, MutualExclusion>   Mutexes;
         private ConcurrentDictionary<long, ConditionVariable> CondVars;
 
         private HashSet<(HSharedMem, long)> MappedSharedMems;