aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Kernel/KConditionVariable.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-12-04 22:52:39 -0200
committerGitHub <noreply@github.com>2018-12-04 22:52:39 -0200
commit3615a70cae3f89197fe185dfc5d0a47fa42151d9 (patch)
tree8e4737422fba15199c1a6ce7c6345996c0e907b5 /Ryujinx.HLE/HOS/Kernel/KConditionVariable.cs
parent85dbb9559ad317a657dafd24da27fec4b3f5250f (diff)
Revert "Adjust naming conventions and general refactoring in HLE Project (#490)" (#526)
This reverts commit 85dbb9559ad317a657dafd24da27fec4b3f5250f.
Diffstat (limited to 'Ryujinx.HLE/HOS/Kernel/KConditionVariable.cs')
-rw-r--r--Ryujinx.HLE/HOS/Kernel/KConditionVariable.cs56
1 files changed, 28 insertions, 28 deletions
diff --git a/Ryujinx.HLE/HOS/Kernel/KConditionVariable.cs b/Ryujinx.HLE/HOS/Kernel/KConditionVariable.cs
index 15c96c24..1c95f811 100644
--- a/Ryujinx.HLE/HOS/Kernel/KConditionVariable.cs
+++ b/Ryujinx.HLE/HOS/Kernel/KConditionVariable.cs
@@ -5,67 +5,67 @@ namespace Ryujinx.HLE.HOS.Kernel
{
static class KConditionVariable
{
- public static void Wait(Horizon system, LinkedList<KThread> threadList, object mutex, long timeout)
+ public static void Wait(Horizon System, LinkedList<KThread> ThreadList, object Mutex, long Timeout)
{
- KThread currentThread = system.Scheduler.GetCurrentThread();
+ KThread CurrentThread = System.Scheduler.GetCurrentThread();
- system.CriticalSection.Enter();
+ System.CriticalSection.Enter();
- Monitor.Exit(mutex);
+ Monitor.Exit(Mutex);
- currentThread.Withholder = threadList;
+ CurrentThread.Withholder = ThreadList;
- currentThread.Reschedule(ThreadSchedState.Paused);
+ CurrentThread.Reschedule(ThreadSchedState.Paused);
- currentThread.WithholderNode = threadList.AddLast(currentThread);
+ CurrentThread.WithholderNode = ThreadList.AddLast(CurrentThread);
- if (currentThread.ShallBeTerminated ||
- currentThread.SchedFlags == ThreadSchedState.TerminationPending)
+ if (CurrentThread.ShallBeTerminated ||
+ CurrentThread.SchedFlags == ThreadSchedState.TerminationPending)
{
- threadList.Remove(currentThread.WithholderNode);
+ ThreadList.Remove(CurrentThread.WithholderNode);
- currentThread.Reschedule(ThreadSchedState.Running);
+ CurrentThread.Reschedule(ThreadSchedState.Running);
- currentThread.Withholder = null;
+ CurrentThread.Withholder = null;
- system.CriticalSection.Leave();
+ System.CriticalSection.Leave();
}
else
{
- if (timeout > 0)
+ if (Timeout > 0)
{
- system.TimeManager.ScheduleFutureInvocation(currentThread, timeout);
+ System.TimeManager.ScheduleFutureInvocation(CurrentThread, Timeout);
}
- system.CriticalSection.Leave();
+ System.CriticalSection.Leave();
- if (timeout > 0)
+ if (Timeout > 0)
{
- system.TimeManager.UnscheduleFutureInvocation(currentThread);
+ System.TimeManager.UnscheduleFutureInvocation(CurrentThread);
}
}
- Monitor.Enter(mutex);
+ Monitor.Enter(Mutex);
}
- public static void NotifyAll(Horizon system, LinkedList<KThread> threadList)
+ public static void NotifyAll(Horizon System, LinkedList<KThread> ThreadList)
{
- system.CriticalSection.Enter();
+ System.CriticalSection.Enter();
- LinkedListNode<KThread> node = threadList.First;
+ LinkedListNode<KThread> Node = ThreadList.First;
- for (; node != null; node = threadList.First)
+ for (; Node != null; Node = ThreadList.First)
{
- KThread thread = node.Value;
+ KThread Thread = Node.Value;
- threadList.Remove(thread.WithholderNode);
+ ThreadList.Remove(Thread.WithholderNode);
- thread.Withholder = null;
+ Thread.Withholder = null;
- thread.Reschedule(ThreadSchedState.Running);
+ Thread.Reschedule(ThreadSchedState.Running);
}
- system.CriticalSection.Leave();
+ System.CriticalSection.Leave();
}
}
} \ No newline at end of file