Move prio/core locals inside the lock on yield

This commit is contained in:
gdkchan 2018-10-23 21:00:14 -03:00
parent e674b37710
commit a4dd73e55b

View file

@ -226,11 +226,11 @@ namespace Ryujinx.HLE.HOS.Kernel
public void YieldWithLoadBalancing()
{
System.CriticalSectionLock.Lock();
int Prio = DynamicPriority;
int Core = CurrentCore;
System.CriticalSectionLock.Lock();
if (SchedFlags != ThreadSchedState.Running)
{
System.CriticalSectionLock.Unlock();