aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Kernel/Threading/HleScheduler.cs
diff options
context:
space:
mode:
authorAlex Barney <thealexbarney@gmail.com>2019-07-01 21:39:22 -0500
committerAc_K <Acoustik666@gmail.com>2019-07-02 04:39:22 +0200
commitb2b736abc2569ab5d8199da666aef8d8394844a0 (patch)
tree88bcc2ae4fb0d4161c95df2cd7edb12388de922a /Ryujinx.HLE/HOS/Kernel/Threading/HleScheduler.cs
parent10c74182babaf8cf6bedaeffd64c3109df4ea816 (diff)
Misc cleanup (#708)
* Fix typos * Remove unneeded using statements * Enforce var style more * Remove redundant qualifiers * Fix some indentation * Disable naming warnings on files with external enum names * Fix build * Mass find & replace for comments with no spacing * Standardize todo capitalization and for/if spacing
Diffstat (limited to 'Ryujinx.HLE/HOS/Kernel/Threading/HleScheduler.cs')
-rw-r--r--Ryujinx.HLE/HOS/Kernel/Threading/HleScheduler.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/Ryujinx.HLE/HOS/Kernel/Threading/HleScheduler.cs b/Ryujinx.HLE/HOS/Kernel/Threading/HleScheduler.cs
index d5dbb4d8..42eed26a 100644
--- a/Ryujinx.HLE/HOS/Kernel/Threading/HleScheduler.cs
+++ b/Ryujinx.HLE/HOS/Kernel/Threading/HleScheduler.cs
@@ -68,8 +68,8 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
if (hasThreadExecuting)
{
- //If this is not the thread that is currently executing, we need
- //to request an interrupt to allow safely starting another thread.
+ // If this is not the thread that is currently executing, we need
+ // to request an interrupt to allow safely starting another thread.
if (!currentThread.Context.IsCurrentThread())
{
currentThread.Context.RequestInterrupt();
@@ -80,8 +80,8 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
CoreManager.Reset(currentThread.Context.Work);
}
- //Advance current core and try picking a thread,
- //keep advancing if it is null.
+ // Advance current core and try picking a thread,
+ // keep advancing if it is null.
for (int core = 0; core < 4; core++)
{
_currentCore = (_currentCore + 1) % CpuCoresCount;
@@ -100,8 +100,8 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
}
}
- //If nothing was running before, then we are on a "external"
- //HLE thread, we don't need to wait.
+ // If nothing was running before, then we are on a "external"
+ // HLE thread, we don't need to wait.
if (!hasThreadExecuting)
{
return;
@@ -114,9 +114,9 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
private void PreemptCurrentThread()
{
- //Preempts current thread every 10 milliseconds on a round-robin fashion,
- //when multi core scheduling is disabled, to try ensuring that all threads
- //gets a chance to run.
+ // Preempts current thread every 10 milliseconds on a round-robin fashion,
+ // when multi core scheduling is disabled, to try ensuring that all threads
+ // gets a chance to run.
while (_keepPreempting)
{
lock (CoreContexts)