0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-22 22:45:48 +00:00

Move prio/core locals inside the lock on yield (#478)

This commit is contained in:
gdkchan 2018-10-24 09:45:37 -03:00 committed by GitHub
parent 9ace6b9285
commit 2fd23577ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();