|
|
@@ -47,8 +47,6 @@ namespace Ryujinx.HLE.OsHle.Handles
|
|
|
|
|
|
if (TryAddToCore(Thread))
|
|
|
{
|
|
|
- SchedThread.IsRunning = true;
|
|
|
-
|
|
|
Thread.Thread.Execute();
|
|
|
|
|
|
PrintDbgThreadInfo(Thread, "running.");
|
|
|
@@ -110,16 +108,6 @@ namespace Ryujinx.HLE.OsHle.Handles
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public bool IsThreadRunning(KThread Thread)
|
|
|
- {
|
|
|
- if (!AllThreads.TryGetValue(Thread, out SchedulerThread SchedThread))
|
|
|
- {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- return SchedThread.IsRunning;
|
|
|
- }
|
|
|
-
|
|
|
public void EnterWait(KThread Thread, int TimeoutMs = Timeout.Infinite)
|
|
|
{
|
|
|
SchedulerThread SchedThread = AllThreads[Thread];
|
|
|
@@ -170,8 +158,6 @@ namespace Ryujinx.HLE.OsHle.Handles
|
|
|
{
|
|
|
lock (SchedLock)
|
|
|
{
|
|
|
- AllThreads[Thread].IsRunning = false;
|
|
|
-
|
|
|
PrintDbgThreadInfo(Thread, "suspended.");
|
|
|
|
|
|
int ActualCore = Thread.ActualCore;
|
|
|
@@ -263,8 +249,6 @@ namespace Ryujinx.HLE.OsHle.Handles
|
|
|
|
|
|
private void TryResumingExecution(SchedulerThread SchedThread)
|
|
|
{
|
|
|
- SchedThread.IsRunning = false;
|
|
|
-
|
|
|
KThread Thread = SchedThread.Thread;
|
|
|
|
|
|
PrintDbgThreadInfo(Thread, "trying to resume...");
|
|
|
@@ -275,8 +259,6 @@ namespace Ryujinx.HLE.OsHle.Handles
|
|
|
{
|
|
|
if (TryAddToCore(Thread))
|
|
|
{
|
|
|
- SchedThread.IsRunning = true;
|
|
|
-
|
|
|
PrintDbgThreadInfo(Thread, "resuming execution...");
|
|
|
|
|
|
return;
|
|
|
@@ -306,8 +288,6 @@ namespace Ryujinx.HLE.OsHle.Handles
|
|
|
{
|
|
|
PrintDbgThreadInfo(SchedThread.Thread, "running.");
|
|
|
}
|
|
|
-
|
|
|
- SchedThread.IsRunning = true;
|
|
|
}
|
|
|
|
|
|
public void Resort(KThread Thread)
|