mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 09:21:15 +01:00
Move prio/core locals inside the lock on yield (#478)
This commit is contained in:
1 parent
9ace6b9285
commit
2fd23577ce
1 file changed
+2
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user